sencha / ext-gen

Sencha ExtGen - Open Tools for Ext JS
25 stars 28 forks source link

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

Open wemersonjanuario opened 5 years ago

wemersonjanuario commented 5 years ago

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 commented 5 years ago

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 commented 5 years ago

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