-
Notifications
You must be signed in to change notification settings - Fork 360
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
Webpack AOT build fails #451
Comments
Strange, this version fixed all AOT issues. Can you remove TagInputModule and try if AOT works without it? |
Removing TagInputModule and the component itself makes the AOT build run fine. Sorry that I can't provide a more informative stracktrace as @ngtools/webpack doesn't do a very good job at it. |
It seems that the issue is soley with ng2-tag-input and @ngtools/webpack AOT build plugin. When I tested the project on simple angular cli AOT, then it worked just fine. |
Maybe is an scss compilation problem. I've got A LOT of problem to figure out how to make it work with @ngtools/webpack and I've resolved with the following webpack loaders configuration:
|
Well, the scss is compiled and distributed through the bundle, so it's really odd that it was the cause in the 1st place, unless some weirdness was going on |
My webpack configuration for modules including scss wasn't correct but it was difficut to find out the problem because the sass-loader simply hang without an error |
I am facing the same issue. It works great without AOT. when I compile it using AOT it seems that the css is not loading correctly or at all : @dbusacca I have tried adding the loaders you've specified but the result hasn't changed. @Gbuomprisco Any news regarding this issue? |
It's not something I've been able to reproduce |
@Gbuomprisco I am having this issue too... Are you using ngtools/webpack or are you using angular-cli...there is an incompaitibility issue with a dependency they have used and it is creeping up again. here is the error I get
|
@Gbuomprisco checkout out this issue and here |
Still not working. Exactly same as @kadosh1000 |
@Gbuomprisco I'm having the same problem getting this error
Did you find any solution for this? |
@unbeatableDeepak I guess you use the plugin somehow to load the scss. Add these loaders for the scss files of the ngx-chips.
Otherwise check this this extract-text-webpack-plugin issue or similar. |
@olezt Thanks for the reply, I've tried without plugin but it gives this error:
|
@unbeatableDeepak For your case you may need to also add |
I'm submitting a ... (check one with "x")
Current behavior
AOT build fails in prod. In local with just regular webpack it runs fine.
Include "import {TagInputModule} from 'ng2-tag-input';" in module and AOT fails with a not very informative
17% building modules 61/62 modules 1 active ...rise\front\static\scss\bootstrap.scssModuleNotFoundError: Module not found: Error: Can't resolve './../aot/app/app.module.ngfactory'
Without the TagInputModule import it builds fine.
Expected behavior
AOT build runs without errors
Minimal reproduction of the problem with instructions (if applicable)
What is the motivation / use case for changing the behavior? (if applicable)
What do you use to build your app? (SystemJS, Webpack, angular-cli, etc.). Please specify the version
Webpack and
Webpack AOT
Angular version:
ng2-tag-input version:
ng-tag-input 1.3.3
Browser: [all | Chrome XX | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ]
all
The text was updated successfully, but these errors were encountered: