Closed pwnball closed 6 years ago
The error that's breaking your compilation seems to be this:
ERROR in ./source/index.ts
Module not found: Error: Can't resolve './../aot/source/modules/app.ngfactory' in 'D:\development\private\glassify\code-base\source'
@ ./source/index.ts 5:0-75
I'm sorry but without a simple reproduction there isn't much help we can give. This might be an error in your codebase that prevents compilation, or a problem with the set of options you're using. Making a simple repro that's decoupled from your projects code is a good way to debug the issue as well.
I am having a similar issue, I cannot get the @ngtools/webpack AoTPlugin working when I have styleUrls in my components. If I use raw-loader & to-string-loader I get a runtime error, if I use css-loader & style-loader I get build issues saying my ngfactory cannot be resolved.
If I comment out all the styleUrls, the app works minus the styles of course.
I'm sorry, but we can't reproduce the problem following the instructions you provided. Remember that we have a large number of issues to resolve, and have only a limited amount of time to reproduce your issue. Short, explicit instructions make it much more likely we'll be able to reproduce the problem so we can fix it.
If the problem persists, please open a new issue following our submission guidelines.
A good way to make a minimal repro is to create a new app via ng new repro-app
and adding the minimum possible code to show the problem. Then you can push this repository to github and link it here.
This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.
Versions.
Not using ng-cli. npm version: 3.10.9 node version: 6.9.2 OS: Windows 10
Repro steps.
Making a repo for this would be hard, but heres my code: ./package.json
./webpack.config.js
./config/webpack/paths.js
_./config/webpack/core.js
./config/webpack/environments/production.js
./tsconfig.ts
The log given by the failure.
Desired functionality.
I would like to build my environment using the @ngTools/webpack aotPlugin.