-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Issues using react-diagrams node module #2407
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
Labels
Comments
You might need this: // file: config/webpack/environment.js
environment.loaders.delete('nodeModules') |
@jakeNiemiec thank you, that worked! |
jakeNiemiec
added a commit
to jakeNiemiec/webpacker
that referenced
this issue
Jun 8, 2020
fixes rails/rails#35501 fixes rails#2131 fixes rails/rails#36278 fixes rails#2407 fixes rails#2114 fixes rails#1949 fixes rails#1865 fixes rails#1857
gauravtiwari
pushed a commit
that referenced
this issue
Jun 17, 2020
fixes rails/rails#35501 fixes #2131 fixes rails/rails#36278 fixes #2407 fixes #2114 fixes #1949 fixes #1865 fixes #1857
I just ran into this on a clean install of Rails 6, React-Rails, and Webpacker. I installed React Diagrams and immediately ran into this issue. I ran all the right generators, too. So perhaps this setting should remain the default for now? It took me HOURS to solve this. Why would I have looked at an "upgrading" tip. I never upgraded. |
KingTiger001
added a commit
to KingTiger001/Rails-web-pack-project
that referenced
this issue
Jan 15, 2023
fixes rails/rails#35501 fixes rails/webpacker#2131 fixes rails/rails#36278 fixes rails/webpacker#2407 fixes rails/webpacker#2114 fixes rails/webpacker#1949 fixes rails/webpacker#1865 fixes rails/webpacker#1857
smartech7
pushed a commit
to smartech7/ruby-webpacker
that referenced
this issue
Aug 4, 2023
fixes rails/rails#35501 fixes rails/webpacker#2131 fixes rails/rails#36278 fixes rails/webpacker#2407 fixes rails/webpacker#2114 fixes rails/webpacker#1949 fixes rails/webpacker#1865 fixes rails/webpacker#1857
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I have been trying to install a node module called react-diagrams but I seem to be having issues importing the modules into my React app after installation.
I tried using the node module in a create-react-app and it works without needing extra setup on webpack. Has anyone used this module, or would know what might cause the issues?
For example, when I try importing one of the components from the module, I get the following error.
I also get the following error when importing another component from this module.
Uncaught TypeError: Super expression must either be null or a function: undefined
I assume it could be due to webpacker having some different loader settings that causes this?
If anyone has any slight idea, it would be much appreciated. Thank you.
The text was updated successfully, but these errors were encountered: