-
Notifications
You must be signed in to change notification settings - Fork 194
Angular 2 app doesn't build with last version (v3.4.0) #98
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
Exactly same issue here |
Yup, same issue here. Took some time to find the cause! |
Glad we found this, same issue here |
Hi there, I'm one of the maintainers of In the https://github.com/webpack/enhanced-resolve/releases/tag/v3.4.0 release I only see performance changes so am not too sure what changed that breaks our stuff. Our direct usage of Is there anything that comes to mind we need to change to support Thanks for your time. |
Could you run webpack with A repro case would be great. |
nevermind I can use the repro case from the angular issue |
@sokra I'll get you a isolated webpack config that exhibits this error. |
That would be great. Seem to be related to the AOT virtual filesystem thing... |
Here it is:
|
I agree, it's related to the virtual filesystem indeed. I can't contact it's author right now but can try to figure it out myself if you have any idea of what changed that we should incorporate. |
Thanks. I'll look into it. |
Same issue here. Need to revert to 3.3.0 to fix the issue. |
bisect says 03ef8f2 |
👍 It's not said enough: Thank you to both Filipe and Tobias for your quick responses. This issue is only 8 hours old and already we have |
I'm away from the workstation so can't look into the commit further, but will in a few hours. Thanks for narrowing it down @sokra 👍 |
See angular#7113 and webpack/enhanced-resolve#98 for context. This should be unpinned when a real fix is found.
See #7113 and webpack/enhanced-resolve#98 for context. This should be unpinned when a real fix is found.
ok I found the issue. The Instead of creating a virtual filesystem by decorating the filesystem instance It's broken now, because Instead of injecting the values, hook into the Compiler const vfs = new VirtualFileSystemDecorator(compiler.inputFileSystem);
compiler.inputFileSystem = vfs;
...
vfs.set("/some/path", ...); The |
If you want watching to work consider the same for |
@sokra roger, we'll move in that direction. That's likely to fix other issues we were having. For now we're pinning Thank you so much for looking into this. 💯 |
See #7113 and webpack/enhanced-resolve#98 for context. This should be unpinned when a real fix is found.
See #7113 and webpack/enhanced-resolve#98 for context. This should be unpinned when a real fix is found.
Sounds good |
I can confirm it's working with the emergency release. Thanks a lot! |
Thanks guys, I close the issue. |
See [angular-cli#7113](angular/angular-cli#7113) and [webpack/enhanced-resolve#98](webpack/enhanced-resolve#98) for context.
Is my guess correct that several different projects are trying to inject fake/virtual files into the webpack FS cache and all broke because the internals that they were using changed? If so I think that caused us problems too. Could we get an official API to allow us to add virtual files to the webpack FS? |
There is an official API => Create a Decorator for the filesystem. Pass this decorated filesystem as option to the Resolver factory (for enhanced-resolve). Resp. set |
Thanks for the reply, is there an example of what you are talking about somewhere? |
@briandipalma here's an example of how we're doing it in Angular CLI: angular/angular-cli#7471 |
Why is this issue closed ? It's still not fixed in [email protected] |
Hi people, Thanks |
@Basel78 heya, issues like that should be opened against https://github.com/angular/angular-cli/ and not here. The problem described here hasn't affected Angular CLI projects for a while, so I don't think the problem you are experiencing is related. Please make sure to check the existing issues and https://github.com/angular/angular-cli/wiki/stories-linked-library before opening a new issue though. |
@filipesilva will do thanks for your response and help |
@briandipalma heya, I was having some more trouble with file watchers in the virtual file system, which I documented here: webpack/webpack#5824. I initially reported it as a bug but it's really just a matter of decorating |
Thanks for the heads up @filipesilva we have been seeing issues on file watch rebuilds. |
See angular#7113 and webpack/enhanced-resolve#98 for context. This should be unpinned when a real fix is found.
Uh oh!
There was an error while loading. Please reload this page.
Since last release I can't build my Angular4 app anymore, following error occurs:
Had to revert to v3.3.0.
Nb: I use
angular/cli
v1.0.0-rc.2The text was updated successfully, but these errors were encountered: