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

ngx-context@2 errors with @angular/cli@12.2.11 #38

Closed
st-clair-clarke opened this issue Nov 4, 2021 · 2 comments
Closed

ngx-context@2 errors with @angular/cli@12.2.11 #38

st-clair-clarke opened this issue Nov 4, 2021 · 2 comments

Comments

@st-clair-clarke
Copy link

After installing ngx-context@2 and making NgContextModule an import in my AppModule, I get the following error and the application fails to start:

core.js:1119 Uncaught Error: Type NgxContextModule does not have 'ɵmod' property.
    at getNgModuleDef (core.js:1119)
    at recurse (core.js:25273)
    at recurse (core.js:25284)
    at registerNgModuleType (core.js:25269)
    at new NgModuleFactory$1 (core.js:25383)
    at compileNgModuleFactory__POST_R3__ (core.js:29082)
    at PlatformRef.bootstrapModule (core.js:29332)
    at Module.6790 (main.ts:47)
    at __webpack_require__ (bootstrap:19)
    at __webpack_exec__ ((index):23)

After removing NgxContextModule from my imports, the application runs normally.

I am using "@angular/cli": "^12.2.11" with the following environment:

image

@mehmet-erim
Copy link
Member

Hello @st-clair-clarke,

I cannot reproduce the problem. Please provide the steps to reproduce.

@st-clair-clarke
Copy link
Author

The problem went away when I removed node_modules and reinstall.

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

2 participants