-
Notifications
You must be signed in to change notification settings - Fork 793
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
bug: stencil dev mode with React component wrappers #6083
Comments
Hey! 👋 |
Hello ! Thanks for your answer stencil config :
output (in react-library/lib) :
As you can see, we still importing from |
I believe buildDist should be set to true 🙂 |
For development ?
Anyway I've tested with |
I've tried to remove the --dev from the command line. But still this is another issue.... My next app is not importing from stencil but from react-library. So even if the output is live updated in my |
Prerequisites
Stencil Version
4.23
Current Behavior
I've followed the guidelines from documentation and succeed to have my stencil component created in react-library, which is imported in my next app. It works !
But when trying to run stencil start command (--dev --watch) to have live update while updating components.
I had an import error saying
@react-library/dist/my-component does not exists
Expected Behavior
Having my next app udpated with my stencil component updated when editing it
System Info
No response
Steps to Reproduce
Follow the documentation about integrating stencil component in react environnement
Then run
pnpm start
in/stencil
folderCode Reproduction URL
private
Additional Information
In dev mode I figure out that in the output react wrappers, it was still looking for in
/dist/components/my-component.js
in my stencil packagebut in dev mode, component are served in
/www
folder and only types are exported in/dist
Tried to add
type: "www"
inreactOutputTarget
, my react wrappers was still looking for/dist/components/my-component.js
Tried to add a condition in stencil config :
The output is my react wrapper update perfectly and now instead of having
/dist/components/my-component.js
I have/build/www/my-component.js
The text was updated successfully, but these errors were encountered: