Скажи мне, что может быть.Проект был создан с помощью команды create-реагировать-приложение.package.json //
"name": "front",
"version": "1.0.0",
"private": true,
"proxy": "http://127.0.0.1:8000",
"dependencies": {
"@material-ui/core": "^3.3.2",
"@material-ui/icons": "^3.0.1",
"bootstrap": "^4.1.3",
"history": "^4.7.2",
"jwt-decode": "^2.2.0",
"material-ui": "^0.20.2",
"react": "^16.5.1",
"react-dom": "^16.5.1",
"react-redux": "^5.0.7",
"react-router-dom": "^4.3.1",
"react-router-redux": "^5.0.0-alpha.9",
"react-scripts": "1.1.5",
"react-transition-group": "^1.1.2",
"reactstrap": "^6.3.1",
"redux": "^4.0.0",
"redux-api-middleware": "^2.0.0-beta.3",
"redux-persist": "^5.0.0-beta.7",
"redux-persist-transform-filter": "0.0.18",
"redux-thunk": "^2.3.0"
},
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test --env=jsdom",
"eject": "react-scripts eject"
}
Я искал в сети.Ничего подходящего не нашел.Кроме того, для многих решений требуется файл конфигурации веб-пакета.Спасибо за вашу помощь!Когда я использую команду npm, запустите build, получите такой результат:
Creating an optimized production build...
Failed to compile.
Failed to minify the code from this file:
./node_modules/@material-ui/core/es/styles/withStyles.js:35
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! front@1.0.0 build: `react-scripts build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the front@1.0.0 build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /home/rom/.npm/_logs/2018-10-28T14_41_52_597Z-debug.log