Wrong jss-server-side output in examples with nextjs(include typescript) #25178
Labels
duplicate
This issue or pull request already exists
package: styles
Specific to @mui/styles. Legacy package, @material-ui/styled-engine is taking over in v5.
Sorry about my poor of english first
When I add some components with nextjs example, an error occurs:
Current Behavior 😯
1.Uncompressed(jss-server-side)
2.without prefix(jss-server-side)
Expected Behavior 🤔
1.compressed(jss-server-side)
2.with prefix(jss-server-side)
Steps to Reproduce 🕹
Steps:
1.add some components in nextjs page
2.yarn build
3.yarn start
4.see the wrong output
Context 🔦
all css compressed with prefix is important for production
Your Environment 🌎
`npx @material-ui/envinfo`
System: OS: Windows 10 10.0.19041 Binaries: Node: 14.15.4 - C:\Program Files\nodejs\node.EXE Yarn: 1.22.5 - C:\Program Files (x86)\Yarn\bin\yarn.CMD npm: 6.14.10 - C:\Program Files\nodejs\npm.CMD Browsers: Chrome: 88.0.4324.190 Edge: Spartan (44.19041.423.0), Chromium (88.0.705.81) npmPackages: @emotion/react: 11.1.5 => 11.1.5 @emotion/styled: 11.1.5 => 11.1.5 @material-ui/core: next => 5.0.0-alpha.26 @material-ui/styled-engine: 5.0.0-alpha.25 @material-ui/styles: 5.0.0-alpha.26 @material-ui/system: 5.0.0-alpha.26 @material-ui/types: 5.1.7 @material-ui/unstyled: 5.0.0-alpha.26 @material-ui/utils: 5.0.0-alpha.26 @types/react: 17.0.2 => 17.0.2 react: 17.0.1 => 17.0.1 react-dom: 17.0.1 => 17.0.1 typescript: 4.1.5 => 4.1.5tsconfig.json:
{
"compilerOptions": {
"baseUrl": ".",
"paths": {
"@src*": [
"./src*"
]
},
"target": "es5",
"lib": [
"dom",
"dom.iterable",
"esnext"
],
"allowJs": true,
"skipLibCheck": true,
"strict": true,
"forceConsistentCasingInFileNames": true,
"noEmit": true,
"esModuleInterop": true,
"module": "esnext",
"moduleResolution": "node",
"resolveJsonModule": true,
"isolatedModules": true,
"jsx": "preserve"
},
"include": [
"next-env.d.ts",
"/*.ts",
"/*.tsx"
],
"exclude": [
"node_modules"
]
}
browser:Google Chrome 88.0.4324.190
The text was updated successfully, but these errors were encountered: