-
카테고리
-
세부 분야
프론트엔드
-
해결 여부
미해결
Compiled with problems 질문드립니다.
22.01.04 16:59 작성 조회수 1.08k
1
Compiled with problems:
<button style="white-space:pre-wrap;background:#000000;font-size:20px;font-weight:bold;color:white;cursor:pointer;float:right;border:initial none initial">X</button>
ERROR in ./node_modules/rss-parser/lib/parser.js 2:13-28
Module not found: Error: Can't resolve 'http' in '/Users/taesukim/Desktop/dev/every-news-in-korea/node_modules/rss-parser/lib' 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: { "http": require.resolve("stream-http") }' - install 'stream-http' If you don't want to include a polyfill, you can use an empty module like this: resolve.fallback: { "http": false }
ERROR in ./node_modules/rss-parser/lib/parser.js 3:14-30
Module not found: Error: Can't resolve 'https' in '/Users/taesukim/Desktop/dev/every-news-in-korea/node_modules/rss-parser/lib' 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: { "https": require.resolve("https-browserify") }' - install 'https-browserify' If you don't want to include a polyfill, you can use an empty module like this: resolve.fallback: { "https": false }
let Parser = require('rss-parser');
사용 후 위와 같은 에러가 나오는데 어떻게 해결하면 좋을까요? ㅜㅜ
답변을 작성해보세요.
1
jgb710
2022.01.30
지나가다 남겨봅니다.
https://quasar.dev/quasar-cli/handling-webpack#webpack-v5-compatibility-issues
요기 참고해보시면 될것 같아요
답변 1