rss-parser: Module not found: Error: Can't resolve 'http'
Hi, thanks for your great job !
i don’t manage to use your library
I’m doing a node/angular/ionic 4 app with last version npm packages
i try u node.js example and i got :
[ng] ERROR in ./node_modules/rss-parser/lib/parser.js
[ng] Module not found: Error: Can't resolve 'http' in 'C:\Users\MyAccount\source\repos\just-s-app\node_modules\rss-parser\lib'
[ng] ERROR in ./node_modules/rss-parser/lib/parser.js
[ng] Module not found: Error: Can't resolve 'https' in 'C:\Users\MyAccount\source\repos\just-s-app\node_modules\rss-parser\lib'
[ng] i 「wdm」: Failed to compile.
i try modify the tsconfig.json
i try you web example :
file at « http://localhost:8100/node_modules/rss-parser/dist/rss-parser.min.js » was block because of incorrect type MIME (« text/html ») (X-Content-Type-Options: nosniff).
i try this method : https://www.techiediaries.com/rss-atom-reader-ionic-3/
all that without any result 😒 sorry i’m noob to Node.JS, and sorry for my english i’m french
thanks !
About this issue
- Original URL
- State: open
- Created 5 years ago
- Comments: 18 (4 by maintainers)
I found a solution for Angular/Ionic! Add this to package.json
Run
npm install stream timers --save+1, seeing this issue as well in react/TS + yarn project. I am getting cannot resolve errors for http, https, and buffer. The above solution didn’t work for me. Any pointers or updates?