-
Notifications
You must be signed in to change notification settings - Fork 233
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
Invariant Violation: addComponentAsRefTo(...) in Electron (io.js, commonjs, es6) #30
Comments
Which versions of |
"react": "0.13.3" I'm putting together a minimal Electron app to reproduce, will post shortly. |
Thank you, there might be some problem with the standard UMD that need to be fixed. |
After much pulling of hair, I've found this not to be a problem with your component. My folder structure looks something like this: root The React constant is being required in I'm unsure why this was happening, but I've gotten around it by specifying a relative path in let React = require('../node_modules/react'); |
Ok, thank you and good luck with your electron app 👍 |
While attempting to use your component in an electron app, I've been seeing the following error thrown:-
Most of the articles online say this is caused by having two copies of react loaded at the same time. To work around this I'm first loading react into a global variable like this:
And then making a minor change to the file
react-tagsinput.js:4
Is this something you could incorporate into your code?
The text was updated successfully, but these errors were encountered: