Skip to content
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

Can't resolve 'react-dom' on npm start #156

Open
wemersonjanuario opened this issue Feb 12, 2019 · 2 comments
Open

Can't resolve 'react-dom' on npm start #156

wemersonjanuario opened this issue Feb 12, 2019 · 2 comments

Comments

@wemersonjanuario
Copy link
Contributor

When run npm start in a Ext JS CE application we have this ERROR:

[ext]: Writing content to \generatedFiles\desktop.json
i [ext]: Loading Build Environment
i [ext]: Waiting for changes...
i [ext]: Completed ext-webpack-plugin processing
× 「wdm」: Built at: 2019-02-12 20:05:39

ERROR in ./node_modules/react-hot-loader/dist/react-hot-loader.development.js
Module not found: Error: Can't resolve 'react-dom' in 'C:\laragon\www\treinamento\my-app\node_modules\react-hot-loader\dist'
@ ./node_modules/react-hot-loader/dist/react-hot-loader.development.js 10:31-51
@ ./node_modules/react-hot-loader/patch.js
@ multi (webpack)-dev-server/client?http://0.0.0.0:1962 react-hot-loader/patch
i 「wdm」: Failed to compile.

@swegeler
Copy link

I have seen this before but I'm not using CE. I resolved it by removing react and react-hot-loader from the devDependencies in package.json. Currently I'm running with the following
"devDependencies": { "@sencha/ext-webpack-plugin": "~1.0.2", "command-line-args": "^5.0.2", "cross-env": "^5.2.0", "html-webpack-plugin": "^3.2.0", "portfinder": "^1.0.20", "webpack": "^4.27.1", "webpack-cli": "^3.1.2", "webpack-dev-server": "^3.1.14" }

@wemersonjanuario
Copy link
Contributor Author

does not work for me removing react and react-hot-loader in package.json

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

No branches or pull requests

2 participants