You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have searched for existing issues that already report this problem, without success.
Stencil Version
v4.0.4
Current Behavior
When running npm run build, the resulting dist/esm/polyfills folder is empty every other time the command is run. This causes issues as the loader exports the index file of the polyfills folder.
Expected Behavior
The polyfills folder should contain at least an index file on every build.
I wasn't able to reproduce it on macOS, but then I tried out your reproduction in a windows 11 VM and, lo and behold, it does reproduce there, so I think we've got a windows-specific bug on our hands here.
I'm going to label it to get it ingested into our internal backlog so it can be prioritized and fixed.
I'm seeing this intermittently on my Windows 11 machine. stencil build completes and the dist folder is generated, there's a polyfills folder under esm/ but it is empty. When I run build again it is fixed.
Activity
alicewriteswrongs commentedon Aug 8, 2023
Hey @AnnaHoege, thanks for filing this issue!
I wasn't able to reproduce it on macOS, but then I tried out your reproduction in a windows 11 VM and, lo and behold, it does reproduce there, so I think we've got a windows-specific bug on our hands here.
I'm going to label it to get it ingested into our internal backlog so it can be prioritized and fixed.
FirstVertex commentedon Sep 12, 2023
I'm seeing this intermittently on my Windows 11 machine.
stencil buildcompletes and the dist folder is generated, there's a polyfills folder under esm/ but it is empty. When I run build again it is fixed.FirstVertex commentedon Sep 15, 2023
Here is my workaround for now using rimraf and a prebuild step.
npm i rimraf --save-devIn your package.json add a prebuild which will run before stencil build
"prebuild": "rimraf ./dist/esm/polyfills"rwaskiewicz commentedon Oct 13, 2023
Can anyone running into this issue please try out this dev build for me and let me know if this works?
Thanks!
imagoiq commentedon Oct 16, 2023
Hi,
Works on my side, the polyfills folder is not empty anymore and contains:
core-js.js,dom.js,es5-html-element.js,index.jsandsystem.js.Thanks for handling it.
fix(compiler): persist polyfills on build
fix(compiler): persist polyfills on build (#4932)
rwaskiewicz commentedon Oct 16, 2023
Starting at ~3AM UTC (tomorrow), the fix for this issue will be a part of the Stencil nightly builds. You can test it out with:
We plan on shipping this fix in our next release of Stencil, which is currently planned for no later than 1 week from today.
rwaskiewicz commentedon Oct 23, 2023
The fix for this issue has been released as a part of today's Stencil v4.6.0 release