worker-plugin icon indicating copy to clipboard operation
worker-plugin copied to clipboard

Breaks Angular templates

Open edenworky opened this issue 6 years ago • 1 comments

I followed this guide: https://medium.com/lacolaco-blog/enjoyable-webworkers-in-angular-41cfeb0e6519

When I open my app it boots Angular and immediately fails accessing template files (Failed to load failed-foo.component.html, app.com/foo.component.html 404 (Not Found))

Commenting out the new WorkerPlugin line solves this, although of course it fails trying to access the workers. The build always passes successfully with no errors, even with --verbose; and when WorkerPlugin is configured it seems to be building a worker chunk.

Any clue what might be causing this? I don't even know what kind of informative log I can send. Very confusing.

edenworky avatar Jul 11 '19 09:07 edenworky

Hmm - are you using the latest version of Angular CLI? If so, it ships with this plugin included by default. Perhaps two of them is causing the issue?

If not, try updating to the latest Angular CLI. Since they shipped it by default, I can't imagine it would have this issue.

developit avatar Jul 16 '19 14:07 developit