-
Notifications
You must be signed in to change notification settings - Fork 12k
No module factory available for dependency type: ContextElementDependency (after update 1.6.8 -> 1.7.0) #9680
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
Comments
Error in npm's
|
same here. ng serve then ctrl - c then run ng-serve throw error port 4200 is in use. |
Same issue here after migrating from 1.6.6 to 1.7.0:
|
I had the same issue with LazyLoading routing feature difference and angular-cli 1.6.8 -> 1.7.0
|
Same issue here. Made no changes and upgraded and got the same error.
Versions:
|
Tested on 1.7.1 and still happening :( |
Heya, this issue is a duplicate of #6417. You can see the answer to it in #6417 (comment). The short version is that you can't have multiple versions of webpack on your node_modules. Removing the extra webpack installs should fix it. |
This was happening for me because I had storybook installed which comes with its own webpack version. |
@filipesilva Now after upgrading to RC 6 versions I'm getting exactly same I wonder what's wrong here.
|
I have the exact same issue with the NodeTemplatePlugin error. The only way to fix is is by installing a higher webpack version ... |
Do anyone get a solution to this error? |
@AlaaAhmedBM try this answer just remove the package-lock.json before npm install it worked for me! |
I have the same issue. Its very annoying. |
@yzini-eagle , seeing your solution. What I have tried is :
It worked. However, I don't know what the root cause is. |
This works just fine for me with angular 6: |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Having a build error after update to
1.7.0
No module factory available for dependency type: ContextElementDependency
Versions
ng -v
Angular CLI: 1.7.0
Node: 8.9.1
OS: win32 x64
Angular: 5.2.5
... animations, common, compiler, compiler-cli, core, forms
... http, language-service, platform-browser
... platform-browser-dynamic, router
@ angular/cli: 1.7.0
@ angular-devkit/build-optimizer: 0.3.1
@ angular-devkit/core: 0.3.1
@ angular-devkit/schematics: 0.3.1
@ ngtools/json-schema: 1.2.0
@ ngtools/webpack: 1.10.0
@ schematics/angular: 0.3.1
@ schematics/package-update: 0.3.1
typescript: 2.4.2
webpack-dev-server: 2.9.7
webpack: 3.10.0
P.s.
node_modules
and reinstalling withnpm i
- didn't helpnpm i @angular/cli --save-dev
- didn't help1.6.8
- helpedThe text was updated successfully, but these errors were encountered: