Closed webface closed 4 years ago
Could not find files for /index in .next/build-manifest.json
TypeError: (0 , _jss.getDynamicStyles) is not a function
It was working fine for weeks then this
I'm also having this issue.
Failed to compile
./node_modules/@material-ui/styles/esm/makeStyles/makeStyles.js
Attempted import error: 'getDynamicStyles' is not exported from 'jss'.
Same as #20132
jss v10.1.1 released which fixes this
@mglaman I dont see a fix on that post
https://github.com/cssinjs/jss/pull/1303 author has released a fix, I just tested it and confirm it works now as it did before.
Confirming it fixes things as well (thx @Vadorequest for tracking it down)
@Vadorequest @mglaman how do i fix it in my project?
Reinstall your dependencies. That should do the trick.
Reinstalling dependencies doesn't work for me. I've removed @material-ui/core
from package.json
, then removed node_modules
, then npm i @material-ui/core -s
, but I still got
Failed to compile.
./node_modules/@material-ui/styles/esm/makeStyles/makeStyles.js
Attempted import error: 'getDynamicStyles' is not exported from 'jss'.
It's not core, it's styles
@material-ui/styles
I'm facing this issue in core
library. I've just installed it and I got this error after using this sample code:
import Button from '@material-ui/core/Button';
<Button variant="contained" color="primary">
Hello World
</Button>
Managed to solve (I don't know how). Here my package.json
:
{
"name": "training_react",
"version": "0.1.0",
"private": true,
"dependencies": {
"@material-ui/core": "^4.9.5",
"@material-ui/icons": "^4.9.1",
"@material-ui/styles": "^4.9.0",
"@testing-library/jest-dom": "^4.2.4",
"@testing-library/react": "^9.5.0",
"@testing-library/user-event": "^7.2.1",
"jss": "^10.1.1",
"node-sass": "^4.13.1",
"react": "^16.13.0",
"react-dom": "^16.13.0",
"react-dropzone": "^10.2.1",
"react-router-dom": "^5.1.2",
"react-scripts": "3.4.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"
]
}
}
Closing as a duplicate of #20132
I have been working on a project for 3 weeks with the same depencies even deployed to server. Now all of a sudden I get error during dev and build
Current Behavior 😯
Fails to build with error:
Expected Behavior 🤔
Should build as usual
Steps to Reproduce 🕹
Steps:
1. 2. 3. 4.
Context 🔦
Your Environment 🌎