Open wearefridayhutber opened 6 years ago
I have just moved react-scripts@1.1.15 to react-scripts-cssmodules and now when running npm run build
react-scripts@1.1.15
react-scripts-cssmodules
npm run build
Cannot read property 'thisCompilation' of undefined
Package.json
{ "name": "aviva_penny", "version": "1.0.0", "private": true, "homepage": "http://--DOMAIN--/", "repository": { "type": "git", "url": "https://github.com/AvivaPenny/cloud" }, "scripts": { "start": "react-scripts start", "build": "react-scripts build", "test": "CI=true react-scripts test --env=jsdom --colors", "report": "CI=true react-scripts test --env=jsdom --colors --coverage", "test:watch": "react-scripts test --env=jsdom", "lint-scripts": "eslint './{src/**,test/**,config/**,.}/*.js'", "lint-styles": "stylelint './src/**/*.css'", "lint": "npm run lint-scripts && npm run lint-styles", "postversion": "git push && git push --tags && npm publish", "preversion": "npm run lint && npm run test && npm run build", "commit": "git-cz", "storybook": "start-storybook -p 9009 -s public", "build-storybook": "build-storybook -s public", "prepush": "npm run test", "eject": "react-scripts eject", "mock-server": "./node_modules/.bin/json-server --watch ./src/mock-server/db.json --port 3001 --routes ./src/mock-server/routes.js" }, "lint-staged": { "*.js": [ "prettier --write", "eslint", "git add" ], "*.css": [ "stylelint --fix", "git add" ] }, "husky": { "hooks": { "pre-commit": "lint-staged" } }, "dependencies": { "bootstrap": "^4.1.2", "connected-react-router": "^4.4.1", "eslint-plugin-react-app": "^3.0.0", "history": "^4.7.2", "jest-fetch-mock": "^1.6.5", "numeral": "^2.0.6", "react": "^16.4.1", "react-dom": "^16.4.1", "redux-form": "^7.4.2" }, "devDependencies": { "@babel/core": "^7.1.0", "@babel/runtime": "^7.0.0", "@material-ui/core": "^3.0.1", "@material-ui/icons": "^3.0.1", "@storybook/addon-actions": "^4.0.0-alpha.21", "@storybook/addon-info": "^4.0.0-alpha.21", "@storybook/addon-links": "^4.0.0-alpha.21", "@storybook/addons": "^4.0.0-alpha.21", "@storybook/react": "^4.0.0-alpha.21", "babel-core": "^6.26.3", "babel-eslint": "^7.2.3", "babel-runtime": "^6.26.0", "cz-conventional-changelog": "^2.1.0", "enzyme": "^3.6.0", "enzyme-adapter-react-16": "^1.5.0", "enzyme-to-json": "^3.3.4", "eslint": "^4.9.1", "eslint-config-prettier": "^3.0.1", "eslint-plugin-jsx-a11y": "^5.1.1", "eslint-plugin-prettier": "^2.6.2", "husky": "^1.0.0-rc.14", "json-server": "^0.14.0", "lint-staged": "^7.2.2", "prettier": "^1.14.2", "prop-types": "^15.6.2", "react-hot-loader": "^4.3.5", "react-redux": "^5.0.7", "react-router": "^4.3.1", "react-router-dom": "^4.3.1", "react-scripts-cssmodules": "^1.1.50", "react-test-renderer": "^16.4.2", "redux": "^4.0.0", "redux-devtools-extension": "^2.13.5", "redux-logger": "^3.0.6", "redux-persist": "^5.10.0", "redux-thunk": "^2.3.0", "stylelint": "^9.5.0", "stylelint-config-standard": "^18.2.0" }, "config": { "commitizen": { "path": "./websites/www/node_modules/cz-conventional-changelog" } }, "browserslist": { "development": [ "last 2 chrome versions", "last 2 firefox versions", "last 2 edge versions" ], "production": [ ">0.25%", "not op_mini all", "ie 11" ] }, "snapshotSerializers": [ "enzyme-to-json/serializer" ] }
@wearefridayhutber - Are you able to create a minimal repo with this issue?
I have just moved
react-scripts@1.1.15
toreact-scripts-cssmodules
and now when runningnpm run build
Cannot read property 'thisCompilation' of undefined
Package.json