Я создаю проект framework7-webpack. Когда я запускаю сервер, он выдает следующую ошибку: -
internal/modules/cjs/loader.js:796
throw err;
^
Error: Cannot find module 'C:\Users\gagan\sapora\hybrid\build\webpack.config.js'
Require stack:
- C:\Users\gagan\sapora\hybrid\node_modules\webpack-cli\bin\utils\convert-argv.js
- C:\Users\gagan\sapora\hybrid\node_modules\webpack-dev-server\bin\webpack-dev-server.js
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:793:17)
at Function.Module._load (internal/modules/cjs/loader.js:686:27)
at Module.require (internal/modules/cjs/loader.js:848:19)
at require (internal/modules/cjs/helpers.js:74:18)
at WEBPACK_OPTIONS (C:\Users\gagan\sapora\hybrid\node_modules\webpack-cli\bin\utils\convert-argv.js:114:13)
at requireConfig (C:\Users\gagan\sapora\hybrid\node_modules\webpack-cli\bin\utils\convert-argv.js:116:6)
at C:\Users\gagan\sapora\hybrid\node_modules\webpack-cli\bin\utils\convert-argv.js:123:17
at Array.forEach (<anonymous>)
at module.exports (C:\Users\gagan\sapora\hybrid\node_modules\webpack-cli\bin\utils\convert-argv.js:121:15)
at Object.<anonymous> (C:\Users\gagan\sapora\hybrid\node_modules\webpack-dev-server\bin\webpack-dev-server.js:84:40) {
code: 'MODULE_NOT_FOUND',
requireStack: [
'C:\\Users\\gagan\\sapora\\hybrid\\node_modules\\webpack-cli\\bin\\utils\\convert-argv.js',
'C:\\Users\\gagan\\sapora\\hybrid\\node_modules\\webpack-dev-server\\bin\\webpack-dev-server.js'
]
}
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! reminder@1.0.0 dev: `cross-env NODE_ENV=development webpack-dev-server --config ./build/webpack.config.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the reminder@1.0.0 dev 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! C:\Users\gagan\AppData\Roaming\npm-cache\_logs\2020-02-01T13_44_45_418Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! reminder@1.0.0 start: `npm run dev`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the reminder@1.0.0 start 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! C:\Users\gagan\AppData\Roaming\npm-cache\_logs\2020-02-01T13_44_45_783Z-debug.log
Я попытался выполнить следующие шаги: - 1) Я переустановил node
. 2) Я удалил папку node-modules. 3) Я переустановил все модули, используя npm install
. Тем не менее я получил ту же ошибку