codebandits / react-app-rewire-css-modules

MIT License
69 stars 51 forks source link

update to new create-react-app #9

Closed siminture closed 5 years ago

siminture commented 6 years ago
TypeError: Cannot read property 'use' of undefined
    at createRule (D:\coding\front\reactive-front\node_modules\react-app-rewire-less-modules\index.js:28:25)
    at D:\coding\front\reactive-front\node_modules\react-app-rewire-less-modules\index.js:47:29
    at Object.override [as webpack] (D:\coding\front\reactive-front\config-overrides.js:8:14)

package.json { "name": "reactive-front", "version": "0.1.0", "private": true, "dependencies": { "antd": "^3.1.6", "react": "^16.2.0", "react-dom": "^16.2.0", "react-scripts": "1.1.0" }, "scripts": { "start": "react-app-rewired start", "build": "react-app-rewired build", "test": "react-app-rewired test --env=jsdom", "eject": "react-scripts eject" }, "devDependencies": { "babel-plugin-import": "^1.6.3", "react-app-rewire-less": "^2.1.0", "react-app-rewire-less-modules": "^1.2.0", "react-app-rewired": "^1.4.1" } }

siminture commented 6 years ago

please help to fix this issue

tmasunda commented 6 years ago

I have a similar issue with the same error.

My less package is version 3.0.4 My less-loader version is 4.1.0 I also have the following: "react-app-rewire-less-modules": "^1.3.0", "react-app-rewired": "^1.5.2",

Please assist

lnhrdt commented 5 years ago

Closing this PR and archiving this project in favor of Create React App's native support for CSS Modules introduced in v2.