-
Notifications
You must be signed in to change notification settings - Fork 142
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
stencil bundle error for stencil cli version 1.12.2 #325
Comments
+1, I get the same error. |
@ElynJin @CThiebaut Can y'all please provide me with:
|
Win10 64bit |
I noticed when run stencil start, it will generate 'assets/dist' files, then run stencil bundle, it will clear 'assets/dist' files and gives error(I guess it will regenerate 'assets/dist' files after clear them, but it doesn't, and then gives error) With this guess, I looked into webpack.conf.js and commented out this code, After this, I run stencil start and stencil bundle, it doesn't give error, and then I uploaded it, it also displayed correctly on front-end. |
@ElynJin I've opened an internal ticket to address this, but in the meantime, it seems your fix suffices. |
@PreciselyAlyss The stencil bundle can run with no error after I commented out that code, but there is another problem. |
This error seems to be because stencil begins zipping the files before webpack is finished. Ex. This runs instantly and stencil starts trying to zip everything up instead of waiting on the process.send('done');.
https://github.com/bigcommerce/cornerstone/blob/master/stencil.conf.js#L55 |
This issue can be resolved by converting your stencil.config.js back to the style used a few versions back, which depend on the callbacks passed to the development and production functions. This allows you to keep the CleanWebpackPlugin in play. See this for an example: https://github.com/bigcommerce/cornerstone/blob/1.6.2/stencil.conf.js Additionally, unrelated, but not sure where else to put it. If anyone experiences 'Possible unhandled rejection' errors in the newest versions, you can resolve it by placing |
@jesseconnr @ElynJin @CThiebaut Commenting out the cleanwebpackplugin will address this as a temporary fix. We are investigating internally to provide a more long term solution
|
As @ElynJin mentioned, the size of the bundle.js does get bloated if we comment out CleanWebpackPlugin. The workaround I've found is that run the stencil bundle a second time after the 'Error: ENOENT: ' is seen. This time, bundle finishes, but the dist folder will not be there in the assets folder in the zip file (as it gets created much later after the zipping is finished). Then after verifying that dist folder is created in the assets folder in the project folder, manually add the assets folder to the zip file (I've 7zip installed and hence I can do this by right clicking on assets folder, selecting 7-zip, add to archive) |
@finnysamuel - Yeah... I've also added |
I just ran into this time suck today. @karen-white what's the status on this bug? |
Hi @jeremysimmons , we do have an internal ticket to address this. I'll update this thread when there is a fix, but I don't have a timeline at the moment. |
For everyone waiting on this bug, I apologize. We will do better in the future of watching this space for bug reports and acting more quickly on them. See #413 for the fix, which will be released in version 1.15.2. |
huzzah. maybe the other community pull requests could get merged as well? |
@jeremysimmons We are putting together a process to do a regular review of all our community issues and pull requests. The storefront team appreciates the time all of you have put into these repos, and we'll make sure going forward that we collaborate with you in a timely fashion. We'll put together an update to our contribution guide to set the right expectations in that regard. |
Fixed in 1.15.2 |
When I ran stencil bundle, it gives error:
events.js:141
throw er; // Unhandled 'error' event
^
Error: ENOENT: no such file or directory, open 'D:\xxxxx\xxxxx\stencil\assets\dist\theme-bundle.chunk.0.js'
at Error (native)
The text was updated successfully, but these errors were encountered: