admin管理员组文章数量:1026989
No matter what I do, after building my project I keep getting the following error:
Error parsing bundle asset "<path-to-project>\polyfills-es5-es2015.e1bdcd70857e70f37509.js": no such file
events.js:174
Which is exactly right seeing that my project creates a polyfills-es5.e1bdcd70857e70f37509
file and a polyfills-es2015.25bfed26497f24d6d1d7
file.
This is in a nx workspace project that I created yesterday
After every build the file names obviously changes, but it keeps looking for a mixed es5-es2015
polyfills file.
The stats file gets created as stats-es2015.json
and our package.json settings is: "bundle-report": "webpack-bundle-analyzer dist/apps/<project-name>/stats-es2015.json"
I keep getting the error with default
build or production
, with ivy
enabled or disabled, and I eve tried to remove the es5BrowserSupport
flag, hoping there will only be one polyfills file, but it is still looking for es5-es2015
file...
No matter what I do, after building my project I keep getting the following error:
Error parsing bundle asset "<path-to-project>\polyfills-es5-es2015.e1bdcd70857e70f37509.js": no such file
events.js:174
Which is exactly right seeing that my project creates a polyfills-es5.e1bdcd70857e70f37509
file and a polyfills-es2015.25bfed26497f24d6d1d7
file.
This is in a nx workspace project that I created yesterday
After every build the file names obviously changes, but it keeps looking for a mixed es5-es2015
polyfills file.
The stats file gets created as stats-es2015.json
and our package.json settings is: "bundle-report": "webpack-bundle-analyzer dist/apps/<project-name>/stats-es2015.json"
I keep getting the error with default
build or production
, with ivy
enabled or disabled, and I eve tried to remove the es5BrowserSupport
flag, hoping there will only be one polyfills file, but it is still looking for es5-es2015
file...
2 Answers
Reset to default 5Try this mand to see if it work for you
ng build --prod --stats-json && webpack-bundle-analyzer dist/stats.json
My tsconfig.json
"module": "esNext",
"target": "es5",
I can also maybe add that I think at the end of the day my solution was just to simply close all my vsCode windows.
When ever I have vsCode open I would get the polyfills-es5-es2015.<whatever>.js": no such file
error, but when I close vsCode and run the exact same mand it works...
I think it may have to do with having the angular ui plugin in vsCode, that has some kind of bundle tool as well that uses the same port as wba. So it actually has nothing to do for me with not finding the polygon file, but it still gives that error when the wba port is in use...
PS: I found this out when checking if that port was indeed in use on my machine, and it showed that it was in use by vsCode, so something in vsCode is using it and closing vsCode solved the error for me...
No matter what I do, after building my project I keep getting the following error:
Error parsing bundle asset "<path-to-project>\polyfills-es5-es2015.e1bdcd70857e70f37509.js": no such file
events.js:174
Which is exactly right seeing that my project creates a polyfills-es5.e1bdcd70857e70f37509
file and a polyfills-es2015.25bfed26497f24d6d1d7
file.
This is in a nx workspace project that I created yesterday
After every build the file names obviously changes, but it keeps looking for a mixed es5-es2015
polyfills file.
The stats file gets created as stats-es2015.json
and our package.json settings is: "bundle-report": "webpack-bundle-analyzer dist/apps/<project-name>/stats-es2015.json"
I keep getting the error with default
build or production
, with ivy
enabled or disabled, and I eve tried to remove the es5BrowserSupport
flag, hoping there will only be one polyfills file, but it is still looking for es5-es2015
file...
No matter what I do, after building my project I keep getting the following error:
Error parsing bundle asset "<path-to-project>\polyfills-es5-es2015.e1bdcd70857e70f37509.js": no such file
events.js:174
Which is exactly right seeing that my project creates a polyfills-es5.e1bdcd70857e70f37509
file and a polyfills-es2015.25bfed26497f24d6d1d7
file.
This is in a nx workspace project that I created yesterday
After every build the file names obviously changes, but it keeps looking for a mixed es5-es2015
polyfills file.
The stats file gets created as stats-es2015.json
and our package.json settings is: "bundle-report": "webpack-bundle-analyzer dist/apps/<project-name>/stats-es2015.json"
I keep getting the error with default
build or production
, with ivy
enabled or disabled, and I eve tried to remove the es5BrowserSupport
flag, hoping there will only be one polyfills file, but it is still looking for es5-es2015
file...
2 Answers
Reset to default 5Try this mand to see if it work for you
ng build --prod --stats-json && webpack-bundle-analyzer dist/stats.json
My tsconfig.json
"module": "esNext",
"target": "es5",
I can also maybe add that I think at the end of the day my solution was just to simply close all my vsCode windows.
When ever I have vsCode open I would get the polyfills-es5-es2015.<whatever>.js": no such file
error, but when I close vsCode and run the exact same mand it works...
I think it may have to do with having the angular ui plugin in vsCode, that has some kind of bundle tool as well that uses the same port as wba. So it actually has nothing to do for me with not finding the polygon file, but it still gives that error when the wba port is in use...
PS: I found this out when checking if that port was indeed in use on my machine, and it showed that it was in use by vsCode, so something in vsCode is using it and closing vsCode solved the error for me...
本文标签: javascriptangular 8 webpackbundleanalyzer looking for wrong polyfill filesStack Overflow
版权声明:本文标题:javascript - angular 8 webpack-bundle-analyzer looking for wrong polyfill files - Stack Overflow 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://it.en369.cn/questions/1745662041a2161949.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论