Closed primedev22 closed 6 years ago
I've built a simple react web app with this starter-kit. The prototype is completed and now I am going to deploy it to AWS and tried to build this project and now I have unexpected error while building.
{ "name": "rnsk", "homepage": "http://react-boilerplate.mcnam.ee/", "version": "0.1.0", "private": true, "devDependencies": { "autoprefixer": "^8.3.0", "autoprefixer-loader": "^3.2.0", "babel-core": "^6.26.0", "babel-loader": "^7.1.4", "babel-plugin-react-transform": "^3.0.0", "babel-preset-es2015": "^6.24.1", "babel-preset-react": "^6.24.1", "babel-preset-stage-0": "^6.24.1", "css-loader": "^0.28.11", "gulp": "^3.9.1", "jest-expo": "^26.0.0", "json-loader": "^0.5.7", "node-sass": "^4.8.3", "react-native-scripts": "1.13.2", "react-test-renderer": "16.3.2", "react-transform-catch-errors": "^1.0.2", "react-transform-hmr": "^1.0.4", "redbox-react": "^1.5.0", "redux": "^4.0.0", "redux-logger": "^3.0.6", "sass-loader": "^7.0.1", "style-loader": "^0.21.0", "webpack": "^3.11.0", "webpack-dev-server": "^2.11.2", "webpack-hot-middleware": "^2.22.1" }, "main": "./node_modules/react-native-scripts/build/bin/crna-entry.js", "scripts": { "start": "npm run debug && react-native-scripts start", "eject": "react-native-scripts eject", "android": "react-native-scripts android", "ios": "react-native-scripts ios", "test": "node node_modules/jest/bin/jest.js --watch", "web": "webpack-dev-server --content-base build/ --config webpack/web.dev.config.js --port 3001 --inline --hot --colors --historyApiFallback", "web-bundle": "webpack --config webpack/web.prod.config.js --progress --colors", "clear-cache": "gulp clear-cache", "debug": "open 'rndebugger://set-debugger-loc?host=localhost&port=19001'" }, "jest": { "preset": "jest-expo" }, "dependencies": { "@expo/vector-icons": "^6.3.1", "axios": "^0.18.0", "babel": "^6.23.0", "babel-eslint": "^8.2.3", "babel-polyfill": "^6.26.0", "bootstrap": "^4.1.0", "browser-locale": "^1.0.3", "eslint": "^4.19.1", "eslint-config-airbnb": "^16.1.0", "eslint-plugin-import": "^2.11.0", "eslint-plugin-jsx-a11y": "^6.0.3", "eslint-plugin-react": "^7.7.0", "expo": "^26.0.0", "morgan": "^1.9.0", "native-base": "^2.4.2", "object-assign": "^4.1.1", "prop-types": "^15.6.1", "query-string": "^6.1.0", "react": "^16.3.2", "react-dom": "^16.3.2", "react-icons": "^2.2.7", "react-native": "^0.54.2", "react-native-router-flux": "4.0.0-beta.28", "react-redux": "^5.0.7", "react-router-dom": "^4.2.2", "reactstrap": "^5.0.0", "redux": "^4.0.0", "redux-persist": "^5.9.1", "redux-thunk": "^2.2.0", "superagent": "^3.8.2" } }
I have fixed this issue after upgrading webpack to version 4
I've built a simple react web app with this starter-kit. The prototype is completed and now I am going to deploy it to AWS and tried to build this project and now I have unexpected error while building.
My package.json file
{ "name": "rnsk", "homepage": "http://react-boilerplate.mcnam.ee/", "version": "0.1.0", "private": true, "devDependencies": { "autoprefixer": "^8.3.0", "autoprefixer-loader": "^3.2.0", "babel-core": "^6.26.0", "babel-loader": "^7.1.4", "babel-plugin-react-transform": "^3.0.0", "babel-preset-es2015": "^6.24.1", "babel-preset-react": "^6.24.1", "babel-preset-stage-0": "^6.24.1", "css-loader": "^0.28.11", "gulp": "^3.9.1", "jest-expo": "^26.0.0", "json-loader": "^0.5.7", "node-sass": "^4.8.3", "react-native-scripts": "1.13.2", "react-test-renderer": "16.3.2", "react-transform-catch-errors": "^1.0.2", "react-transform-hmr": "^1.0.4", "redbox-react": "^1.5.0", "redux": "^4.0.0", "redux-logger": "^3.0.6", "sass-loader": "^7.0.1", "style-loader": "^0.21.0", "webpack": "^3.11.0", "webpack-dev-server": "^2.11.2", "webpack-hot-middleware": "^2.22.1" }, "main": "./node_modules/react-native-scripts/build/bin/crna-entry.js", "scripts": { "start": "npm run debug && react-native-scripts start", "eject": "react-native-scripts eject", "android": "react-native-scripts android", "ios": "react-native-scripts ios", "test": "node node_modules/jest/bin/jest.js --watch", "web": "webpack-dev-server --content-base build/ --config webpack/web.dev.config.js --port 3001 --inline --hot --colors --historyApiFallback", "web-bundle": "webpack --config webpack/web.prod.config.js --progress --colors", "clear-cache": "gulp clear-cache", "debug": "open 'rndebugger://set-debugger-loc?host=localhost&port=19001'" }, "jest": { "preset": "jest-expo" }, "dependencies": { "@expo/vector-icons": "^6.3.1", "axios": "^0.18.0", "babel": "^6.23.0", "babel-eslint": "^8.2.3", "babel-polyfill": "^6.26.0", "bootstrap": "^4.1.0", "browser-locale": "^1.0.3", "eslint": "^4.19.1", "eslint-config-airbnb": "^16.1.0", "eslint-plugin-import": "^2.11.0", "eslint-plugin-jsx-a11y": "^6.0.3", "eslint-plugin-react": "^7.7.0", "expo": "^26.0.0", "morgan": "^1.9.0", "native-base": "^2.4.2", "object-assign": "^4.1.1", "prop-types": "^15.6.1", "query-string": "^6.1.0", "react": "^16.3.2", "react-dom": "^16.3.2", "react-icons": "^2.2.7", "react-native": "^0.54.2", "react-native-router-flux": "4.0.0-beta.28", "react-redux": "^5.0.7", "react-router-dom": "^4.2.2", "reactstrap": "^5.0.0", "redux": "^4.0.0", "redux-persist": "^5.9.1", "redux-thunk": "^2.2.0", "superagent": "^3.8.2" } }