<!-- Thanks for reporting an issue! This issue tracker is for bugs and issues found within Postlight Parser. Please fill in as much of the template below as you're able. If possible, please provide a stack trace and/or code that demonstrates the problem, keeping it as simple and free of external dependencies as you are able. --> I have insalled both postlight parser and cheerio. In a parallel repository, both work fine. I am using react and vite to create a chrome extension that needs to use this. cheerio works fine in my react component. as soon as I call parser.parse, it gives me the error. import cheerio from 'cheerio'; import Parser from '@postlight/parser'; const $ = cheerio.load(html); //Works const data = await Parser.parse(document.location.href,{html}); //Error vite.config.js import { defineConfig } from 'vite' import react from '@vitejs/plugin-react' // https://vitejs.dev/config/ export default defineConfig({ plugins: [react()], build: { minify:false, rollupOptions: { output: { entryFileNames: `react/[name].js`, chunkFileNames: `react/[name].js`, assetFileNames: `react/[name].[ext]`, }, }, }, }) <!--- Tell us what should happen --> ## Current Behavior <!--- Tell us what happens instead of the expected behavior --> ## Steps to Reproduce <!--- Provide a link to a live example, or an unambiguous set of steps to --> <!--- reproduce this bug. Include code to reproduce, if relevant. --> <!--- Screenshots are helpful when appropriate. --> ## Detailed Description <!--- How has this issue affected you? What are you trying to accomplish? --> <!--- Providing context helps us come up with a solution that is most useful in the real world --> <!--- For example, what website URL are you dealing with? --> <!--- What is the request you are sending? What type of response are you getting? --> <!--- What is missing from the response? --> <!--- If you have a feature request, provide a detailed description of the change or addition you are proposing --> ## Possible Solution <!--- Not obligatory, but suggest a fix/reason for the bug -->
Activity