Closed rayhomie closed 3 years ago
I guess dependencies have problem
"dependencies": {
"ant-design-pro": "^2.3.2",
"antd": "^3.26.16",
"archiver": "^3.1.1",
"classnames": "^2.2.6",
"dva": "^2.6.0-beta.6",
"js-cookie": "^2.2.0",
"lodash": "^4.17.15",
"lodash-decorators": "^6.0.0",
"memoize-one": "^4.0.0",
"moment": "^2.22.2",
"path-to-regexp": "^2.4.0",
"prop-types": "^15.5.10",
"qs": "^6.9.1",
"rc-animate": "^2.4.4",
"react": "^16.8.6",
"react-container-query": "^0.11.0",
"react-dnd": "^10.0.2",
"react-dnd-html5-backend": "^10.0.2",
"react-document-title": "^2.0.3",
"react-dom": "^16.8.6",
"react-media": "^1.8.0",
"store": "^2.0.12",
"umi-request": "^1.0.0"
},
"devDependencies": {
"@styled-jsx/plugin-sass": "^4.0.0",
"@types/qs": "^6.9.3",
"@types/react": "^16.8.24",
"@umijs/hooks": "^1.9.3",
"ali-oss": "^6.1.1",
"axios": "^0.19.1",
"babel-eslint": "^10.0.2",
"co": "^4.6.0",
"cross-env": "^5.1.1",
"cross-port-killer": "^1.0.1",
"eslint": "^5.16.0",
"eslint-config-prettier": "^6.0.0",
"husky": "^1.2.0",
"lint-staged": "^8.1.0",
"mockjs": "^1.0.1-beta3",
"prettier": "^1.18.2",
"styled-jsx": "^3.4.4",
"stylelint": "^9.8.0",
"stylelint-config-prettier": "^4.0.0",
"stylelint-config-standard": "^18.0.0",
"typings-for-css-modules-loader": "^1.7.0",
"umi": "^2.8.3",
"umi-plugin-pro-block": "^1.2.0",
"umi-plugin-react": "^1.9.1"
},
<style jsx>
{`
.md-empty {
text-align: center;
padding: 250px 0 0;
}
`}
</style>
add import JSXStyle where use
import _JSXStyle from 'styled-jsx/style'
Do you want to request a feature or report a bug?
bug
ReferenceError: _JSXStyle is not defined
use css in jsx
What is the expected behavior?
I hope it can render normally
Environment (include versions)
Did this work in previous versions?
styled-jsx can be used normally in version 3.2.1