-
Notifications
You must be signed in to change notification settings - Fork 39
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
Module not found with webpack and react #6
Comments
How did you import the library? |
I have not import it yet... I use CommonsChunkPlugin in webpack, maybe problem is here.
|
It is just a library, if it is not imported or required, it cannot effect your code. |
You can try v6.0.5 |
Update to 6.0.5, but problem still exist.
webpack.config.js
index.js
you can run the following commands to reproduce:
|
The problem is: vendor: Object.keys(json.dependencies) it is same with a import "react";
import "schema-based-json-editor"; but this library has multiple entries, and should be used like: import "react";
import "schema-based-json-editor/react"; |
ahh, got it. Some other small problems ,
|
uninstall then install v6.0.7 should fix 1, 2 and 3. |
v7 should fix this. |
Version(if relevant): 6.0.4
Environment(if relevant):
Code(if relevant):
my webpack config ,
Expected:
build success
Actual:
[599] multi axios core-js es6-promise react react-bootstrap react-dom react-redux react-router-bootstrap react-router-dom redux redux-thunk schema-based-json-editor 160 bytes {0} [built]
+ 753 hidden modules
ERROR in multi axios core-js es6-promise react react-bootstrap react-dom react-redux react-router-bootstrap react-router-dom redux redux-thunk schema-based-json-editor
Module not found: Error: Can't resolve 'schema-based-json-editor' in '/Users/xincai/git/toilet-device-app/web'
@ multi axios core-js es6-promise react react-bootstrap react-dom react-redux react-router-bootstrap react-router-dom redux redux-thunk schema-based-json-editor
The text was updated successfully, but these errors were encountered: