-
Notifications
You must be signed in to change notification settings - Fork 5
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
Contribution Errors #11
Comments
Hey, Yeah it's always tricky to work with linked library using React because you have multiple instance (in the library and in your app). I found a way however, in the webpack config of your dashboard app you can use some alias to force using react from your node_modules. You need to do that for react and emotion:
Then you can npm/yarn link it in your app and it should work. Note that as the package.json is pointing on the I will definitely add some details in the contribution section, or feel free to submit a PR. |
Ahh, ok perfect, that seems to work now when it's built thanks. I was trying to get my dashboard to include it as a module, and then have it build using the dashboards build process. Only problem is it seems the babel plugins don't like the process and it throws errors like so
|
Oh, fixed it so it uses the development of the dashboard If you remove
then in your
Then in your dashboard, do the same with the babel configuration, link them again and you can make changes in your |
Awesome thanks, yeah it's a way more convenient with the hot reload. |
Hey,
I'm trying to make some contributions, but having some issues getting these to import correctly. My HA dashboard is working fine with the published npm version, but I get the below errors when using the built version. I think the issue is the props aren't being passed through, but can't see a reason why.
I've forked the repo, ran the build command, and then I've tried using yarn link and pointing my import line to the
dist/index.js
file, but both result in the same issueAny ideas?
The text was updated successfully, but these errors were encountered: