Closed smellyung closed 1 year ago
Weird...
Do you see any error message while starting ember serve
?
What version of node and Ember CLI are you using?
You can see that the addon has been successully added to package.json?
I was able to replicate this issue as well using ember-service-worker, after I installed it, this issue started showing up, Do you use it as well?
Ah @Mike-Neto, thanks for chiming in!
That makes totally sense. I think https://github.com/DockYard/ember-service-worker-index will intercept any network request for any HTML content (see https://github.com/DockYard/ember-service-worker-index/blob/master/service-worker/index.js#L41), and serve the ember app's static index.html
instead. Adding _analyze
to its excludeScope
config would hopefully fix this!
Yeah, that fixed the issue for me, adding:
'esw-index': { excludeScope: [/_analyze/], },
to my ember-cli-build.js.
I've installed ember-cli-bundle-analyzer, tried to run it (build and serve process not running at the same time like the previous closed issue), and I'm getting this error message: