-
Notifications
You must be signed in to change notification settings - Fork 12k
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
[AOT] @ngtools/webpack throws "Cannot find module './ngfactory/app/app.module.ngfactory'" #2586
Comments
I tryed to run the starting material2 project and I had a similar problem with ngfactory. In main.ts I finded this comment: AoT compile. ` |
@DzmitryShylovich what version of |
the latest |
Basically I've just copy pasted test app so it might be Windows specific issue. |
I have the same error. But if a try to go back to the beta16 I've got error: |
I saw this same error also, when running |
I have the same on Windows 10, but also is occurring in my Travis build on mac OS. You can see the full output of that here: https://travis-ci.org/michaelbromley/skqw/jobs/166849701#L466 I just updated to v1.1.0. |
It's happening again to me. When I run I get the following error:
Two days ago I didn't have any problems to create the distribution of the app. NODE v6.9.1 I tried in windows and also in linux. In both OS get the same error. Maybe this is a different issue? >npm start works fine |
Same as @sdeuvarow for me... in my case from ubuntu 16.04 |
I had a conflict with "ng-cli" package. Removing it and reinstall angular-cli fix the issue. |
Anyone still getting this? |
I'm still seeing this issue with |
Closing this as obsolete. Please provide a git repo that we can try to reproduce. |
When you run the ng build in angular 2, latest angular-cli automatically runs with --aot parameter (ahead of time compilation), so it is trying to optimize your code. You are having a package that is not yet compatible for optimizing. So you need update to your packages. Most probably the packages that has forRoot() in your app.module.ts I recommend to update all packages. Easy way to update your package is to the use package below, which i got it from http://stackoverflow.com/questions/36597780/how-do-i-correctly-upgrade-angular-2-npm-to-the-latest-version Install
Usage
and run |
Check if your
I had accidentally left that out and for me it fixed the problem. |
@18steps that didn't work for me 😿 I was trying to follow the docs for aot compilation, and the only difference I have is I want JIT to be the default My
And inside that Can I not have my |
Maybe #1465 would help me actually. |
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. |
OS?
Windows_NT 10.0.10586
Description.
I'm trying to integrate
@ngtools/webpack
into my custom webpack build and is gettingCannot find module './ngfactory/app/app.module.ngfactory'
error. The source of the error is here. I've managed to suppress the error by disabling this check.Repro steps.
Github repo: https://github.com/DzmitryShylovich/ngtools-error
The log given by the failure.
The text was updated successfully, but these errors were encountered: