Добрый день, при запуске команды npm run serve, появляется данная ошибка:
BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default.
This is no longer the case. Verify if you need this module and configure a polyfill for it.
If you want to include a polyfill, you need to:
- add a fallback 'resolve.fallback: { "timers": require.resolve("timers-browserify") }'
- install 'timers-browserify'
If you don't want to include a polyfill, you can use an empty module like this:
resolve.fallback: { "timers": false }
@ ./src/components/Header.vue?vue&type=script&lang=js& 1:0-200 1:216-219 1:221-418 1:221-418
@ ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/App.vue?vue&type=script&lang=js& 8:0-41 15:12-18
@ ./src/App.vue?vue&type=script&lang=js& 1:0-191 1:207-210 1:212-400 1:212-400
@ ./src/App.vue 2:0-55 3:0-50 3:0-50 9:2-8
@ ./src/main.js 7:0-24 75:13-16
После гуглежа, нашел советы по добавлению resolve: { fallback: { timers: require.resolve('timers-browserify') } }, в webpack.config.js, но такого файла на проекте нет