При выполнение команды "npm run dev" возникает следующая ошибка:
(backend-T508Vxs4-py3.9) olesyakhurmuzakiy@MacBook-Air-Olesya backend % npm run dev
> backend@1.0.0 dev
> webpack --mode development .frontend/src/index.js --output-path ./frontend/static/frontend/main.js
asset main.js 662 bytes [compared for emit] (name: main)
ERROR in main
Module not found: Error: Can't resolve '.frontend/src/index.js' in '/Users/olesyakhurmuzakiy/Desktop/web/kursov_socialmedia/backend'
resolve '.frontend/src/index.js' in '/Users/olesyakhurmuzakiy/Desktop/web/kursov_socialmedia/backend'
Parsed request is a module
using description file: /Users/olesyakhurmuzakiy/Desktop/web/kursov_socialmedia/backend/package.json (relative path: .)
Field 'browser' doesn't contain a valid alias configuration
resolve as module
looking for modules in /Users/olesyakhurmuzakiy/Desktop/web/kursov_socialmedia/backend/node_modules
/Users/olesyakhurmuzakiy/Desktop/web/kursov_socialmedia/backend/node_modules/.frontend doesn't exist
/Users/olesyakhurmuzakiy/Desktop/web/kursov_socialmedia/node_modules doesn't exist or is not a directory
/Users/olesyakhurmuzakiy/Desktop/web/node_modules doesn't exist or is not a directory
/Users/olesyakhurmuzakiy/Desktop/node_modules doesn't exist or is not a directory
/Users/olesyakhurmuzakiy/node_modules doesn't exist or is not a directory
/Users/node_modules doesn't exist or is not a directory
/node_modules doesn't exist or is not a directory
webpack 5.73.0 compiled with 1 error in 31 ms
вот часть из package.json
"scripts": {
"dev": "webpack --mode development .frontend/src/index.js --output-path ./frontend/static/frontend/main.js",
"build": "webpack --mode production .frontend/src/index.js --output-path ./frontend/static/frontend/main.js"
},
директория, где выполняю команду нужная, версии
webpack: 5.73.0
webpack-cli: 4.10.0
webpack-dev-server 4.9.3