Upgrade to 0.87 from 0.86
yarn upgrade [email protected]webpack dev server compiles
Failed to compile
./node_modules/semantic-ui-react/dist/umd/semantic-ui-react.min.js
Module not found: Can't resolve 'React' in '/srv/node_modules/semantic-ui-react/dist/umd'
This error occurred during the build time and cannot be dismissed.
0.87.0
EDIT our webpack config DOES NOT include { resolve: { aliasFields: ['browser'] } }
馃憢 Thanks for opening your first issue here! If you're reporting a 馃悶 bug, please make sure you've completed all the fields in the issue template so we can best help.
We get a lot of issues on this repo, so please be patient and we will get back to you as soon as we can.
Started with a fresh CRA app, and got:
Failed to compile
./node_modules/semantic-ui-react/dist/umd/semantic-ui-react.min.js
Module not found: Can't resolve 'ReactDOM' in '/Users/max/Desktop/cra-sui/node_modules/semantic-ui-react/dist/umd'
npx create-react-app ./yarn add semantic-ui-reactimport { Button } from 'semantic-ui-react'; to src/App.jspackage.json
{
"name": "cra-sui",
"version": "0.1.0",
"private": true,
"dependencies": {
"react": "^16.8.6",
"react-dom": "^16.8.6",
"react-scripts": "3.0.0",
"semantic-ui-react": "^0.87.0"
},
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject"
},
"eslintConfig": {
"extends": "react-app"
},
"browserslist": {
"production": [
">0.2%",
"not dead",
"not op_mini all"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
}
}
Confirmed, caused by #3566. umd build should not be used by default.
Fixed in #3598, will keep opened until next release.
Release on the way, hang tight...
Fixed in [email protected]
Most helpful comment
Fixed in
[email protected]