Skip to content
This repository has been archived by the owner on Sep 7, 2021. It is now read-only.

Can't get it to work with 'react create app' #34

Open
Tsury opened this issue Jan 11, 2017 · 15 comments
Open

Can't get it to work with 'react create app' #34

Tsury opened this issue Jan 11, 2017 · 15 comments

Comments

@Tsury
Copy link

Tsury commented Jan 11, 2017

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.

@un000
Copy link

un000 commented Jan 21, 2017

The same

@Tsury
Copy link
Author

Tsury commented Jan 22, 2017

I tried to report it on 'create-react-app' and this is the response I got: facebook/create-react-app#1380

@booleanhunter
Copy link
Owner

Thank you so much for this @Tsury , I understand the issue now. Will fix asap.

@Tsury
Copy link
Author

Tsury commented Jan 22, 2017

Thank you!
Once you finish, can you please add some instructions on how to successfully integrate with 'create-react-app'? Thanks again.

@booleanhunter
Copy link
Owner

booleanhunter commented Jan 22, 2017

Sure I will!

booleanhunter added a commit that referenced this issue Jan 23, 2017
Updates to few NPM packages
Using node modules instead of the dist versions
@EduardoOliveira
Copy link

Same problem here, any ideas?

@aftabnaveed
Copy link

+1

@suryacaprice
Copy link

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'

@ramonberrutti
Copy link

I got the same problem here

@Netsoro
Copy link

Netsoro commented Apr 14, 2018

I also have the same issue

@orangecoloured
Copy link

orangecoloured commented May 12, 2018

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.

@treetopvt
Copy link

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?

@sabbiu
Copy link

sabbiu commented Jul 2, 2018

@booleanhunter Any new updates for it to work with create-react-app

@booleanhunter
Copy link
Owner

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.

@thierabsy
Copy link

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?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests