React Webpack
-
[HMR] bundle has 1 warningsclient.js?f33d:189 ./node_modules/moment/src/lib/locale/locales.jsModule not found: Error: Can't resolve './locale' in '/.../node_modules/moment/src/lib/locale'Frontend/react 2020. 1. 7. 13:09
Error: [HMR] bundle has 1 warningsclient.js?f33d:189 ./node_modules/moment/src/lib/locale/locales.jsModule not found: Error: Can't resolve './locale' in '/.../node_modules/moment/src/lib/locale' Solution: npm install --save moment npm install --save-dev moment-locales-webpack-plugin // webpack.config.js const MomentLocalesPlugin = require('moment-locales-webpack-plugin'); module.exports = { plug..
-
ERROR in ./node_modules/request/lib/har.jsModule not found: Error: Can't resolve 'fs' in '.../node_modules/request/lib'Frontend/react 2020. 1. 7. 12:17
ERROR in ./node_modules/request/lib/har.js Module not found: Error: Can't resolve 'fs' in '/.../node_modules/request/lib' add webpack config : node: { fs: 'empty', },