인프런 영문 브랜드 로고
인프런 영문 브랜드 로고

인프런 커뮤니티 질문&답변

류지영님의 프로필 이미지
류지영

작성한 질문수

Quasar로 만드는 구글 뉴스

Compiled with problems 질문드립니다.

작성

·

1.3K

1

Compiled with problems:



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

1

지나가다 남겨봅니다.

https://quasar.dev/quasar-cli/handling-webpack#webpack-v5-compatibility-issues

 

요기 참고해보시면 될것 같아요

류지영님의 프로필 이미지
류지영

작성한 질문수

질문하기