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
stencil push works. Or an easier to see and more informative error is shown.
Actual behavior
stencil push fails with the error worker initialization failed.
Steps to reproduce behavior
Using stencil-cli version 8.4.0, as soon as you run stencil start it renames stencil.conf.js to stencil.conf.cjs. Afterward, if someone else using an older stencil-cli version like 7.5.5 then stencil push fails with a very subtle error that just says worker initialization failed.
I realize that this could be avoided by just making sure that everyone is using the latest version, but some of us developers are a paranoid folk who often try not to update things unless we have to. Additionally, it might not be obvious what caused this failure to happen.
Could we do something to handle this situation better? Perhaps:
Leave stencil.conf.js in place, and just make a copy with the .cjs file extension
Don't rename it to .cjs extension... I figure this is done because of the recent move to esm, but is it necessary?
Create a field somewhere that indicates what version of stencil-cli should be compatible with the theme code. You could perhaps use this information to provide a better error in the future.
a. On that note, the current version of cornerstone doesn't use the .cjs extension.
Also, I realize I'm getting a bit picky in asking for the above, but I figure it couldn't hurt to maybe consider it. Also, half the reason for writing this is for anyone else that may encounter the problem and not realize what's going on.
Environment
Stencil-cli version stencil --version:
8.4.4 / 7.5.5
Node version node -v:
18.19
NPM version npm -v:
10.2.3
OS:
macOS
The text was updated successfully, but these errors were encountered:
@stefanmiodragconfig.stencil.json is a different file and not related to this issue.
@travisfisher-pdi you can either update to the latest stencil-cli version, or make a copy of stencil.conf.cjs and rename it to the original filename stencil.conf.js.
@travisfisher-pdi Has anybody figured this out? I am also receiving this error. I just installed the latest version of stencil cli. also my file is config.stencil.json @pvaladez
Expected behavior
stencil push
works. Or an easier to see and more informative error is shown.Actual behavior
stencil push
fails with the errorworker initialization failed
.Steps to reproduce behavior
Using
stencil-cli
version 8.4.0, as soon as you runstencil start
it renamesstencil.conf.js
tostencil.conf.cjs
. Afterward, if someone else using an olderstencil-cli
version like7.5.5
thenstencil push
fails with a very subtle error that just saysworker initialization failed
.I realize that this could be avoided by just making sure that everyone is using the latest version, but some of us developers are a paranoid folk who often try not to update things unless we have to. Additionally, it might not be obvious what caused this failure to happen.
Could we do something to handle this situation better? Perhaps:
.cjs
file extension.cjs
extension... I figure this is done because of the recent move to esm, but is it necessary?stencil-cli
should be compatible with the theme code. You could perhaps use this information to provide a better error in the future.a. On that note, the current version of cornerstone doesn't use the
.cjs
extension.Also, I realize I'm getting a bit picky in asking for the above, but I figure it couldn't hurt to maybe consider it. Also, half the reason for writing this is for anyone else that may encounter the problem and not realize what's going on.
Environment
Stencil-cli version
stencil --version
:8.4.4 / 7.5.5
Node version
node -v
:18.19
NPM version
npm -v
:10.2.3
OS:
macOS
The text was updated successfully, but these errors were encountered: