-
Notifications
You must be signed in to change notification settings - Fork 12k
"No module factory available for dependency type: ContextElementDependency" after migrating an universal project to Angular 7 #13298
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
The issue here is that you might have multiple version of webpack installed. You should remove See #6417 (comment) Closing as this seems to be caused by trying to install a different version of webpack than the one that You can check if you have multiple versions of webpack by doing |
I had this issue when upgrading from NG5 to NG7. What worked for me was to uninstall webpack (npm uninstall --save-dev webpack) and then run a "npm install --save-dev @angular-devkit/build-angular@latest". Doing this installs webpack as transitive dependency and ensures you only have one installed locally. I also upgraded to the latest Node version (10). |
edwinquaihoi that worked for me thanks. |
@edwinquaihoi thanks |
webpack is included in angular devDepencies . Just remove it will work. Because, we already have @angular-devkit/build-angular. it's duplicate make conflict |
Thanks, @edwinquaihoi . This worked with Node v8.15.0 |
@edwinquaihoi Thanks!! worked for me! |
@edwinquaihoi Thanks. - npm uninstall --save-dev webpack - npm install --save-dev @angular-devkit/build-angular@latest Work for me! |
Thanks |
Ok this one is correct, just not as for today.
This version worked for me. |
npm install --save-dev @angular-devkit/[email protected] |
@edwinquaihoi Thanks.
Work for me! |
npm uninstall --save-dev webpack npm install --save-dev @angular-devkit/build-angular@latest good !!!! |
For Angular@8 I had to remove webpack-stream package as it uses another version of webpack than @angular-devkit/build-angular. |
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. |
Bug Report or Feature Request (mark with an
x
)Command (mark with an
x
)Versions
Repro steps
With this
package.json
I execute theng serve
command:The log given by the failure
The error I have:
Desired functionality
Mention any other details that might be useful
The text was updated successfully, but these errors were encountered: