-
Notifications
You must be signed in to change notification settings - Fork 24.8k
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
Module not found: Error: Can't resolve './$$_gendir/app/app.module.ngfactory' in #18380
Comments
Solution is here |
For other's reading this and looking for fixes, to help narrow it down, can you confirm the versions of angular CLI |
@russelltrafford, this is my package.json:
If you want a complete example please refer to this repo angular4-on-nginx-with-docker |
Enhance-resolve fixed this issue for me cli 1.3.0-rc3 |
The use of |
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. |
I know that the question related to the
Module not found: Error: Can't resolve './$$_gendir/app/app.module.ngfactory' in...
has been asked many times here. But, I think it is quiet interesting situation herethat I am trying to describe below:
I having node installed on 2 machines running Ubuntu 16.10 and Ubuntu 17.04.
1. On ubuntu 16.04
Node is installed through these command lines:
2. On ubuntu 17.04
Ubuntu 17.04 is already with a new version of node. The installation is done through
3. What is in common between the 2 machines?
3.1. The version of node and npm are:
3.2. The angular4 application is created through @angular/cli
3.3. A repo on githbub for the angular4 application with docker
The both machine are using the same repo angular4-on-nginx-with-docker
4. What is the difference???
4.1. On Ubuntu 16.10
PS:
./src/main.ts
is:4.2. On Ubuntu 17.04
5. Question
Codes in both machines are the same! Just a
git clone
command line is used to get the code. So, what is the difference that make compilation with AOT working on a machine and failing in another machine???Thanks,,,
The text was updated successfully, but these errors were encountered: