You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Problem here import styles from "./index.less";, change it on import styles from "./index.module.less"; and rename index.less to index.module.less, CRA uses module prefix for CSS modules
Expected Behavior
less object is not empty and can be used for react className to change antd styles
Actual Behavior
less object is empty and can not change antd styles
Code
How Do We Reproduce?
clone https://github.com/Inuyashaaaaa/lessErrorRespository and find src/pages/Login/index.less and src/pages/Login/index.jsx
the same question in stack overflow is https://stackoverflow.com/questions/51685999/less-object-is-empty-in-react-webpack
but no body answer
The text was updated successfully, but these errors were encountered: