-
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
Missing "assets/dist" folder in theme's zip file created by "stencil bundle" #379
Comments
Ok. Ok. I found what is going on. The issue is not related to how long Webpack takes to do its work. Forget it. Wipe it. The issue is related to how long the forked I managed to workaround the issue in two distinct ways. 1. Increase timeout time.At I'm not very sure what problem this "timeout" is trying to solve. I can understand the usage of Lodash's Unfortunately, the callback function passed at Anyway, the first workaround which gave me the const timeout = setTimeout(() => callback('timeout'), 5000); This worked. But it required changing 2. Make theme's
|
@takuya4415 - This answers "why it stopped making assets/dist folder" |
Thanks for the workaround. I’ve been having this issue too. Works correctly like, 1/20 times. I’ve taken to manually copying the dist directory into the zip as well. |
Thanks for reporting this and writing up your workaround @jbruni . Could you confirm which OS you're working with? |
@karen-white - I use Linux (Lubuntu) guest in Virtual Box for development (both Windows 10 and MacOS High Sierra as host systems). |
@jbruni Our team has opened an internal ticket for this. I'll share this conversation on the ticket to give our team your additional context and workaround. |
Also experiencing this issue on MacOS. Unlike the original post, I don't have a great deal of custom JS, working with a fresh copy of cornerstone. |
@minutiae - The issue is not related to how long Webpack takes to do its work. I was wrong at the original post, but find out what was going on and posted the details in the second post. I have updated the original post, removing my wrong assumption. |
This issue just started for me after stencil version 2.1.0 |
Not sure if I should open another ticket for this or not, but they seem related. When trying to bundle, I constantly get the following error: I have to alternate between stencil start (to generate the /dist directory) and stencil bundle at least 15-20 times before it finally builds 'successfully', then manually copy over the missing /dist into the zip. |
Ran into this too. Patching stencil.conf.js worked for me. Microsoft Windows [Version 10.0.16299.64] |
CurtisWist I have to alternate between stencil start (to generate the /dist directory) and stencil bundle at least 15-20 times before it finally builds 'successfully', then manually copy over the missing /dist into the zip. its working fine for me very nice solution good thanks lot ..... |
@karen-white - Tired of waiting, and motivated by appearing at latest BigCommerce Town Hall among top 3 Cornerstone contributors... I've submitted PR #409 with the most simple workaround for this issue. It shall prevent the issue to happen for the majority of cases, if not all. If only @mcampa and/or @mjschock were around... Maybe they, as the original code authors, could help providing a more robust fix... |
Nice work @jbruni ! Thanks for your help squashing this bug. We'll prioritize getting your PR reviewed asap. |
@jbruni does https://github.com/bigcommerce/cornerstone actually accept pull-requests?! |
@jeremysimmons - Hmmm... I didn't think on submitting the
|
@karen-white - FYI, found another report of this bug (I've added to the list in this issue's description): If you look at the comments to the question, you'll see more people saying it is also happening with them...
|
@karen-white - That was really "asap"... already merged! 👍 @jeremysimmons - And it looks like Cornerstone PR will also be merged. So quick! We are used to complain... but we shall also recognize when there are reasons to praise. |
@jbruni I'm all for there being reasons to praise. Thanks for the reminder to look for the good in the world. |
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. And to @jbruni, thank you for the detailed write up, that made it easy to track down and fix this. |
Fixed in 1.15.2 |
Not fixed still showing the error |
Expected behavior
The
assets/dist
folder should be included in the theme'szip
file created bystencil bundle
.Actual behavior
The
assets/dist
folder is not included in the theme'szip
file created bystencil bundle
.stencil-cli
starts creating thezip
file output before theassets/dist
folder has been created by Webpack.I've found this issue also reported at the following places:
Steps to reproduce behavior
I'm currently doing maintenance for several BigCommerce stores, using
stencil-cli
and a number of Cornerstone-based themes. Having worked with several stores, this is the first time I'm seeing this issue.Update
Since April, when this issue has been opened by me here, it has been hitting us all the time. The number of BigCommerce store projects, and our team of developers has grown, and everyone, sooner or later, is getting affected by this problem. Right now (August 22) I am revisiting this issue because a developer from our team has uploaded and applied a bundled theme to a sandbox store, and the uploaded theme is broken, due to this issue...
The text was updated successfully, but these errors were encountered: