ERROR in unable to locate 'C:\Users\Anriko\Desktop\домашка реакт\FD3-Pauls\ishop3\public' glob
ERROR in Error: Child compilation failed:
Module not found: Error: Can't resolve 'C:\Users\Anriko\Desktop\домашка реакт\FD3-Pauls\ishop3\public\index.html' in 'C:\Users\Anriko\D esktop\домашка реакт\FD3-Pauls\ishop3\src'
ModuleNotFoundError: Module not found: Error: Can't resolve 'C:\Users\Anriko\Desktop\домашка реакт\FD3-Pauls\ishop3\public\index.html'
in 'C:\Users\Anriko\Desktop\домашка реакт\FD3-Pauls\ishop3\src'
import React from 'react';
import ReactDOM from 'react-dom'; /* для работы с веб страницами */ // модуль React для работы с веб-страницами
import ProductList from '/src/js/components/ProductList.js';
const tableName = "Таблица продуктов";
const tableColName = {
name: "название",
price: "цена",
src: "фотография",
quality: "кол-во ед"
};
const product = require('/src/js/data/products.json');
ReactDOM.render(<ProductList name={tableName} colname={tableColName} product={product} />, document.getElementById('root'));
ERROR in main
Module not found: Error: Can't resolve './index.js' in 'C:\Users\Anriko\Desktop\домашка реакт\FD3-Pauls\ishop3\src'
ERROR in main
Module not found: Error: Can't resolve './index.js' in 'C:\Users\Anriko\Desktop\домашка реакт\FD3-Pauls\ishop3\src'
ERROR in unable to locate 'C:\Users\Anriko\Desktop\домашка реакт\FD3-Pauls\ishop3\public' glob
ERROR in Error: Child compilation failed:
Module not found: Error: Can't resolve 'C:\Users\Anriko\Desktop\домашка реакт\FD3-Pauls\ishop3\public\index.html' in 'C:\Users\Anriko\D esktop\домашка реакт\FD3-Pauls\ishop3\src'
ModuleNotFoundError: Module not found: Error: Can't resolve 'C:\Users\Anriko\Desktop\домашка реакт\FD3-Pauls\ishop3\public\index.html'
in 'C:\Users\Anriko\Desktop\домашка реакт\FD3-Pauls\ishop3\src'
at C:\Users\Anriko\Desktop\домашка реакт\FD3-Pauls\ishop3\node_modules\webpack\lib\Compilation.js:1773:28
at C:\Users\Anriko\Desktop\домашка реакт\FD3-Pauls\ishop3\node_modules\webpack\lib\NormalModuleFactory.js:814:13
at eval (eval at create (C:\Users\Anriko\Desktop\домашка реакт\FD3-Pauls\ishop3\node_modules\tapable\lib\HookCodeFactor
y.js:33:10), :10:1) Object.fromEntries is not a function
at Object.<anonymous> (C:\Users\Anriko\Desktop\домашка реакт\FD3-Pauls\ishop3\webpack.config.js:15:17)
at Module._compile (C:\Users\Anriko\Desktop\домашка реакт\FD3-Pauls\ishop3\node_modules\v8-compile-cache\v8-compile-cache.js:192:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:827:10)
at Module.load (internal/modules/cjs/loader.js:685:32)
at Function.Module._load (internal/modules/cjs/loader.js:620:12)
at Module.require (internal/modules/cjs/loader.js:723:19)
Failed to load 'C:\Users\Anriko\Desktop\домашка реакт\FD3-Pauls\ishop3\webpack.config.js' config
[webpack-cli] { Error: ENOENT: no such file or directory, open './configs/build_configs.json'
at Object.openSync (fs.js:448:3)
at Object.readFileSync (fs.js:348:35)
at Object.<anonymous> (C:\Users\Anriko\Desktop\домашка реакт\FD3-Pauls\ishop3\webpack.config.js:14:28)
at Module._compile (C:\Users\Anriko\Desktop\домашка реакт\FD3-Pauls\ishop3\node_modules\v8-compile-cache\v8-compile-cache.js:192:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:827:10)
at Module.load (internal/modules/cjs/loader.js:685:32)
at Function.Module._load (internal/modules/cjs/loader.js:620:12)
at Module.require (internal/modules/cjs/loader.js:723:19)
at require (C:\Users\Anriko\Desktop\домашка реакт\FD3-Pauls\ishop3\node_modules\v8-compile-cache\v8-compile-cache.js:159:20)
at WebpackCLI.tryRequireThenImport (C:\Users\Anriko\Desktop\домашка реакт\FD3-Pauls\ishop3\node_modules\webpack-cli\lib\webpack-cli.js:32:22)
errno: -4058,
syscall: 'open',
code: 'ENOENT',
path: './configs/build_configs.json' }
code ERESOLVE
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: react-empty-template@undefined
npm ERR! Found: webpack@5.52.1
npm ERR!
npm ERR! While resolving: react-empty-template@undefined
npm ERR! Found: webpack@5.52.1
npm ERR! node_modules/webpack
npm ERR! dev webpack@"^5.35.1" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer webpack@"^4.0.0" from optimize-css-assets-webpack-plugin@5.0.8
npm ERR! node_modules/optimize-css-assets-webpack-plugin
npm ERR! dev optimize-css-assets-webpack-plugin@"^5.0.4" from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
Error: EPERM: operation not permitted, rename 'C:\Users\Anriko\Desktop\домашка реакт\FD3-Pauls\ishop3\node_modules\on-finished\package.json.759376365' -> 'C:\Users\Anriko\Desktop\домашка реакт\FD3-Pauls\ishop3\node_modules\on-finished\package.json'
npm ERR! { [OperationalError: EPERM: operation not permitted, rename 'C:\Users\Anriko\Desktop\домашка реакт\FD3-Pauls\ishop3\node_modules\on-finished\package.json.759376365' -> 'C:\Users\Anriko\Desktop\домашка реакт\FD3-Pauls\ishop3\node_modules\on-finished\package.json']
npm ERR! cause:
npm ERR! { [Error: EPERM: operation not permitted, rename 'C:\Users\Anriko\Desktop\домашка реакт\FD3-Pauls\ishop3\node_modules\on-finished\package.json.759376365' -> 'C:\Users\Anriko\Desktop\домашка реакт\FD3-Pauls\ishop3\node_modules\on-finished\package.json']
npm ERR! errno: -4048,
npm ERR! code: 'EPERM',
npm ERR! syscall: 'rename',
npm ERR! path:
npm ERR! 'C:\\Users\\Anriko\\Desktop\\домашка реакт\\FD3-Pauls\\ishop3\\node_modules\\on-finished\\package.json.759376365',
npm ERR! dest:
npm ERR! 'C:\\Users\\Anriko\\Desktop\\домашка реакт\\FD3-Pauls\\ishop3\\node_modules\\on-finished\\package.json' },
npm ERR! stack:
npm ERR! "Error: EPERM: operation not permitted, rename 'C:\\Users\\Anriko\\Desktop\\домашка реакт\\FD3-Pauls\\ishop3\\node_modules\\on-finished\\package.json.759376365' -> 'C:\\Users\\Anriko\\Desktop\\домашка реакт\\FD3-Pauls\\ishop3\\node_modules\\on-finished\\package.json'",
npm ERR! errno: -4048,
npm ERR! code: 'EPERM',
npm ERR! syscall: 'rename',
npm ERR! path:
npm ERR! 'C:\\Users\\Anriko\\Desktop\\домашка реакт\\FD3-Pauls\\ishop3\\node_modules\\on-finished\\package.json.759376365',
npm ERR! dest:
npm ERR! 'C:\\Users\\Anriko\\Desktop\\домашка реакт\\FD3-Pauls\\ishop3\\node_modules\\on-finished\\package.json',
npm ERR! parent: 'ishop3' }
const isDev = process.env.NODE_ENV === "development";
"scripts": {
"start": "cross-env NODE_ENV=development webpack serve --mode=development --hot",