Skip to content

Angular 14.2.8: Cannot find module '@angular/core' or its corresponding type declarations #177

@pul87

Description

@pul87

I've tried to use the module on Angular 14.2.8.
When I run the project i receive:

./src/main.ts - Error: Module build failed (from ./node_modules/@angular-devkit/build-angular/node_modules/@ngtools/webpack/src/ivy/index.js):
Error: Cannot resolve type entity i2.CommonModule to symbol

Error: ../node_modules/ngx-webcam/src/app/modules/webcam/webcam.module.d.ts:1:21 - error TS2307: Cannot find module '@angular/core' or its corresponding type declarations.

1 import * as i0 from "@angular/core";
~~~~~~~~~~~~~~~

Error: ../node_modules/ngx-webcam/src/app/modules/webcam/webcam.module.d.ts:3:21 - error TS2307: Cannot find module '@angular/common' or its corresponding type declarations.

3 import * as i2 from "@angular/common";
                      ~~~~~~~~~~~~~~~~~


Error: ../node_modules/ngx-webcam/src/app/modules/webcam/webcam/webcam.component.d.ts:1:56 - error TS2307: Cannot find module '@angular/core' or its corresponding type declarations.   

1 import { AfterViewInit, EventEmitter, OnDestroy } from '@angular/core';
                                                         ~~~~~~~~~~~~~~~


Error: ../node_modules/ngx-webcam/src/app/modules/webcam/webcam/webcam.component.d.ts:4:28 - error TS2307: Cannot find module 'rxjs' or its corresponding type declarations.

4 import { Observable } from 'rxjs';
                             ~~~~~~


Error: ../node_modules/ngx-webcam/src/app/modules/webcam/webcam/webcam.component.d.ts:6:21 - error TS2307: Cannot find module '@angular/core' or its corresponding type declarations.   

6 import * as i0 from "@angular/core";
                      ~~~~~~~~~~~~~~~

Any idea on how to fix it?

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions