У меня есть эти ошибки, когда я пытаюсь скомпилировать с веб-пакетом:
ERROR in ./node_modules/destroy/index.js
Module not found: Error: Can't resolve 'fs' in '/home/maxim/test/test/node_modules/destroy'
@ ./node_modules/destroy/index.js 14:17-30
@ ./node_modules/koa/lib/response.js
@ ./node_modules/koa/lib/application.js
@ ./src/index.js
ERROR in ./node_modules/koa/lib/request.js
Module not found: Error: Can't resolve 'net' in '/home/maxim/test/test/node_modules/koa/lib'
@ ./node_modules/koa/lib/request.js 9:12-26
@ ./node_modules/koa/lib/application.js
@ ./src/index.js
вот мой webpack.config.js:
const path = require("path");
module.export = {
entry: "./src/index.js",
output: {
path: path.resolve(__dirname, "dist"),
filename: "bundle.js"
},
};
что я могу сделать?спасибо