Closed TobbeLundberg closed 2 years ago
Here are dependencies and a few more things from our package.json
"dependencies": {
"@formatjs/cli": "^1.1.22",
"@formatjs/intl-getcanonicallocales": "^1.5.3",
"@formatjs/intl-locale": "^2.4.13",
"@formatjs/intl-numberformat": "^4.2.11",
"@formatjs/intl-pluralrules": "^4.0.5",
"@formatjs/intl-relativetimeformat": "^5.2.11",
"@companyab/boundary-pages": "^1.2.1",
"@companyab/docs": "^3.2.1",
"@companyab/company-nets": "^0.6.1",
"@companyab/company-onfido": "^15.0.0",
"@companyab/company-pep": "^6.0.1",
"@companyab/translation-runner": "^1.3.0",
"@companyab/ui-2": "^37.0.1",
"@material-ui/core": "^4.11.0",
"@material-ui/icons": "^4.9.1",
"@sentry/react": "^5.27.1",
"@testing-library/jest-dom": "^5.11.6",
"@testing-library/react": "^11.2.0",
"@testing-library/user-event": "^12.2.2",
"@types/body-scroll-lock": "^3.1.0",
"@types/classnames": "^2.2.11",
"@types/d3": "^6.3.0",
"@types/d3-interpolate-path": "^2.0.0",
"@types/d3-scale": "^2.2.0",
"@types/google.analytics": "^0.0.41",
"@types/jest": "^26.0.15",
"@types/js-cookie": "^2.2.6",
"@types/jspdf": "^1.3.3",
"@types/luxon": "^1.26.2",
"@types/node": "^16.7.8",
"@types/qrcode.react": "^1.0.1",
"@types/react": "^16.9.56",
"@types/react-datepicker": "^3.1.7",
"@types/react-dom": "^16.9.9",
"@types/react-flag-icon-css": "^1.0.4",
"@types/react-helmet": "^6.1.0",
"@types/react-intl": "^3.0.0",
"@types/react-linkify": "^1.0.0",
"@types/react-modal": "^3.12.0",
"@types/react-router-dom": "^5.1.7",
"@types/ua-parser-js": "^0.7.35",
"body-scroll-lock": "^4.0.0-beta.0",
"core-js": "^3.6.5",
"d3-interpolate-path": "^2.1.2",
"elevio": "^1.0.2",
"fireworks-js": "^1.3.5",
"framer-motion": "^2.7.2",
"intersection-observer": "^0.11.0",
"js-cookie": "^2.2.1",
"jspdf": "^2.3.0",
"luxon": "^1.23.0",
"qrcode.react": "^1.0.1",
"query-string": "^6.13.1",
"react": "^17.0.1",
"react-animate-height": "^2.0.21",
"react-dom": "^17.0.1",
"react-flag-icon-css": "^1.0.25",
"react-helmet": "^6.1.0",
"react-intersection-observer": "^8.26.2",
"react-intl": "^5.20.2",
"react-intl-translations-manager": "^5.0.3",
"react-linkify": "^1.0.0-alpha",
"react-modal": "^3.12.1",
"react-router": "^5.2.0",
"react-router-dom": "^5.2.0",
"react-to-print": "^2.10.0",
"sass": "^1.49.9",
"typescript": "^4.4.2",
"ua-parser-js": "^0.7.24"
},
"scripts": {
"// preinstall needed for": "https://github.com/facebook/create-react-app/issues/11773",
"preinstall": "npx npm-force-resolutions",
"modify-files": "node ./modify_files.js",
"analyze": "source-map-explorer 'build/static/js/*.js'",
"start": "node write_env.js development && react-scripts start",
"build": "node write_env.js production && react-scripts build && npm run modify-files",
"test": "react-scripts test",
"translations": "translation-runner",
"translations:print-all": "translation-runner --print-all"
},
"eslintConfig": {
"extends": "react-app"
},
"devDependencies": {
"@types/classnames": "^2.2.11",
"husky": "^3.0.8",
"lint-staged": "^11.1.2",
"npm-force-resolutions": "^0.0.10",
"prettier": "^2.3.2",
"react-scripts": "^5.0.0",
"source-map-explorer": "^2.4.2",
"workerize-loader": "^1.2.0",
"ws": "^7.2.0"
},
Getting rid of workerize-loader made my app work again. It doesn't support webpack 5
Describe the bug
Getting warnings and ultimately an error after upgrading from v4.0.3 to v5
And then this (the error is at the end of the output)
And finally, when trying to run the app I get this in my Chrome console
Did you try recovering your dependencies?
Yes, I've tried deleting
node_modules/
andpackage-lock.json
Which terms did you search for in User Guide?
Mostly searched for "1 ERROR in child compilations (Use 'stats.children: true' resp. '--stats-children' for more details)"
Environment
Steps to reproduce
Unfortunately not able to reproduce outside of our (closed source) code. A fresh cra5 project works fine.
Expected behavior
I expected the upgrade to go smoothly
Actual behavior
Reproducible demo
Sorry, no demo to share 🙁