Open milosrs opened 1 year ago
Any news on this one?
Running on 4.0.2, React 18.2.0 and it's taking even longer than 90 seconds.
{
(...),
"scripts": {
"start": "yarn react-scripts start",
(...),
},
"dependencies": {
"@auth0/auth0-react": "^2.2.4",
"@emotion/react": "^11.11.1",
"@emotion/styled": "^11.11.0",
"@mui/icons-material": "^5.15.0",
"@mui/lab": "^5.0.0-alpha.156",
"@mui/material": "^5.15.0",
"@mui/styles": "^5.15.0",
"@mui/system": "^5.15.0",
"@mui/x-date-pickers": "^6.18.5",
"axios": "^1.6.2",
"chart.js": "^4.4.1",
"clsx": "^2.0.0",
"date-fns": "^2.30.0",
"depcheck": "^1.4.7",
"html2canvas": "^1.4.1",
"jspdf": "^2.5.1",
"nanoid": "^5.0.4",
"nprogress": "^0.2.0",
"react": "^18.2.0",
"react-audio-voice-recorder": "^2.2.0",
"react-chartjs-2": "^5.2.0",
"react-custom-scrollbars-2": "^4.5.0",
"react-dom": "^18.2.0",
"react-helmet-async": "^2.0.3",
"react-router-dom": "^6.21.0",
"react-scripts": "^5.0.1"
},
"devDependencies": {
"@babel/core": "^7.23.6",
"@babel/plugin-proposal-private-property-in-object": "^7.21.11",
"@babel/plugin-syntax-flow": "^7.23.3",
"@babel/plugin-transform-react-jsx": "^7.23.4",
"@types/node": "^20.10.4",
"@types/react": "^18.2.45",
"@types/react-dom": "^18.2.17",
"@typescript-eslint/eslint-plugin": "^6.14.0",
"@typescript-eslint/parser": "^6.14.0",
"env-cmd": "^10.1.0",
"eslint": "^8.55.0",
"eslint-config-airbnb-base": "^15.0.0",
"eslint-config-airbnb-typescript": "^17.1.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-jsx-a11y": "^6.8.0",
"eslint-plugin-prettier": "^5.0.1",
"eslint-plugin-react": "^7.33.2",
"eslint-plugin-react-hooks": "^4.6.0",
"prettier": "^3.1.1",
"typescript": "^5.2.9"
},
"browserslist": {
"production": [
">0.2%",
"not dead",
"not op_mini all"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
},
"packageManager": "yarn@4.0.2"
}
Self-service
Describe the bug
Yarn
v3.5.1
is taking a really long time to start up a project with react scripts. I'm not sure if the root cause isreact-scripts
but we have tried other package managers. For example,pnpm
takes only 30s to start the project.I have tried different compression levels, different options for caching. Nothing helps. I have also tried switching to
nodeLinker: node-modules
, but the behavior is the same.To reproduce
.yarnrc.yml
Not full
package.json
but the parts that you will need:Environment
Additional context
This is my output when running
yarn
.This is my output when starting the project: