ReactJS-AdminLTE
ReactJS-AdminLTE copied to clipboard
Can't get it to work with 'react create app'
EDIT: I mean 'create-react-app'...
I'm following the usage instructions but I'm getting errors in the main js file of ReactJS-AdminLTE saying that react-dom and velocity are missing.
These are the errors I am getting:
Failed to compile.
Error in ./~/adminlte-reactjs/reactjsAdminlte.js
Module not found: 'reactDom' in C:\myApp\node_modules\adminlte-reactjs
@ ./~/adminlte-reactjs/reactjsAdminlte.js 1:120-139
Error in ./~/adminlte-reactjs/reactjsAdminlte.js
Module not found: 'velocity' in C:\myApp\node_modules\adminlte-reactjs
@ ./~/adminlte-reactjs/reactjsAdminlte.js 1:140-159
Could that be something with the webpack config not being used? I see that there's aliases there for react-dom and velocity and paths to get the libraries from.
The same
I tried to report it on 'create-react-app' and this is the response I got: https://github.com/facebookincubator/create-react-app/issues/1380
Thank you so much for this @Tsury , I understand the issue now. Will fix asap.
Thank you! Once you finish, can you please add some instructions on how to successfully integrate with 'create-react-app'? Thanks again.
Sure I will!
Same problem here, any ideas?
+1
I have same problem as well
./node_modules/adminlte-reactjs/node_modules/react-dom/lib/ReactDOMUnknownPropertyHook.js Module not found: Can't resolve 'react/lib/ReactComponentTreeHook' in '/home/caprice/Documents/gvp_ui/node_modules/adminlte-reactjs/node_modules/react-dom/lib'
I got the same problem here
I also have the same issue
I think the issue is that npm version is outdated.
npm package.json
"react": "^0.14.8",
"react-dom": "^15.4.2",
github repo package.json
"react": "^16.3.2",
"react-dom": "^16.3.2"
So for now I changed the path in my package.json to "adminlte-reactjs": "git+https://github.com:booleanhunter/ReactJS-AdminLTE.git" and it seems to work.
The React npm version is exactly what was wrong for me. Changing the path the git makes all the difference. Any idea when a new NPM will be posted?
@booleanhunter Any new updates for it to work with create-react-app
I'll be committing some major changes to this repo in a couple of weeks. Will be using create-react-app so you wouldn't have to bother with Webpack and other dependency issues.
I'll be committing some major changes to this repo in a couple of weeks. Will be using create-react-app so you wouldn't have to bother with Webpack and other dependency issues.
Hi Sir, Have the changes occurred?