We can't fs and http.Agent in the browser, but it'd be nice to process strings of htmls.
ex:
export async function getSeoData(html) {
const seo = new SeoAnalyzer();
const result = await seo.inputHTMLString(html).outputObject().run();
return result;
}
This throws error TypeError: Class extends value undefined is not a constructor or null.
We can't
fs
andhttp.Agent
in the browser, but it'd be nice to process strings of htmls.ex:
This throws error
TypeError: Class extends value undefined is not a constructor or null
.