Open Arogova opened 4 years ago
Thanks for reaching out!
How are you adding rss-parser to the browser? Are you just including dist/rss-parser.min.js
, or are you using require('rss-parser')
?
Just adding dist/rss-parser.min.js and calling it like so :
let parser = new RSSParser({defaultRSS: 2.0}); parser.parseString(fileText, function(err, result){ if (err) throw err; // Doing stuff to the result });
The fileText is the result of FileReader.readAsText
Hi, Parsing fails for the test files "reddit-atom.rss" and "reddit-home.rss" in a browser (Chrome v80) with error :
It seems to be caused by require('xmlbuilder') (builder.js line 7) returning undefined.
Is this an error on my part ?
Thanks, Alexandra