Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
pul87 opened this issue Oct 30, 2023 · 1 comment

Comments

@pul87
Copy link

pul87 commented Oct 30, 2023

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!

@pul87
Copy link
Author

pul87 commented Oct 30, 2023

The issue was related to the project structure, not to the library itself.
Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant