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
Describe the bug
When scaffolding a new lib and upgrading the nx workspace to latest i'll receive an error from the core lib, that the CI flag is not defined. It works as long as we use @stencil/core@2.6.0. After that version we'll get the above mentioned error. This is caused by this PR (ionic-team/stencil#2964) adding telemetry to the core. Within this PR they also changed the way passing around config values by introducing a StencilCLIConfig singleton (https://github.com/ionic-team/stencil/pull/2964/files#diff-dfa9baf011a9c38263c91af5d92745dd686bcc12a41d4974257c98da689589dfR24). Unfortunately the initialization of the singleton is just done within the run() fn and not within any specific fn like taskBuild() which (if i am not wrong) is called by your plugin directly. therefore the flags are always empty and the above mentioned error occurs. Quickly checked on my test app and the run() fn is never called atm but taskBuid() is. When execute any command on a "pure" stencil project, the run() fn is called and the store is initialized correctly.
EDIT:
just checked your package.json which has a pinned dep to @stencil/core@2.6.0 😄 guess that is the only reason why it's not working because the stencil CLI is still on 2.6.0, right? 😄
To Reproduce
create a new nx workspace
add a new stencil lib using this plugin
run nx migrate
run yarn
run nx migrate --run-migration
upgrade all stencil related pkgs to latest
run npx nx build <lib>
Expected behavior
the stencil config singleton is no longer empty and therefor the error is not thrown
Additional context
Thanks a lot for the time spent on this plugin 🙏
Pkg Versions i am using atm:
Hey @zanettin, right now @nxext/stencil isn’t compatible with any stencil version higher than 2.6. The APIs I need right now are not public yet, but I’m already talking with the Stencil Team how to proceed 😁
I had a meeting with William about proceeding with it, and it will be solved with a new Stencil version. Right now, I'm unfortunately not able to solve this for Stencil > 2.6 until a new release.
Describe the bug
When scaffolding a new lib and upgrading the nx workspace to latest i'll receive an error from the core lib, that the
CI
flag is not defined. It works as long as we use@stencil/core@2.6.0
. After that version we'll get the above mentioned error. This is caused by this PR (ionic-team/stencil#2964) adding telemetry to the core. Within this PR they also changed the way passing around config values by introducing aStencilCLIConfig
singleton (https://github.com/ionic-team/stencil/pull/2964/files#diff-dfa9baf011a9c38263c91af5d92745dd686bcc12a41d4974257c98da689589dfR24). Unfortunately the initialization of the singleton is just done within therun()
fn and not within any specific fn liketaskBuild()
which (if i am not wrong) is called by your plugin directly. therefore the flags are always empty and the above mentioned error occurs. Quickly checked on my test app and therun()
fn is never called atm buttaskBuid()
is. When execute any command on a "pure" stencil project, therun()
fn is called and the store is initialized correctly.EDIT:
just checked your
package.json
which has a pinned dep to@stencil/core@2.6.0
😄 guess that is the only reason why it's not working because the stencil CLI is still on2.6.0
, right? 😄To Reproduce
nx migrate
yarn
nx migrate --run-migration
npx nx build <lib>
Expected behavior
the stencil config singleton is no longer empty and therefor the error is not thrown
Additional context
Thanks a lot for the time spent on this plugin 🙏
Pkg Versions i am using atm:
The text was updated successfully, but these errors were encountered: