remarkablemark/html-react-parser

Vercel Edge not Supported

deevo-sage opened this issue · 2 comments

Expected Behavior

Should be deployable to Vercel Edge

Actual Behavior

image this error pops up if the runtime is set to 'edge'

Steps to Reproduce

import parse from "html-react-parser";
export const runtime = "edge";

const html = `<div>hello</div>`;

export default function TestPage() {
  const parsedHTML = parse(html || "", {
    trim: true
  });

  return parsedHTML;
}

Reproducible Demo

https://codesandbox.io/p/sandbox/confident-panini-t7ww8l

Environment

  • Version: 4.2.9
  • Platform: Nextjs
  • Browser: Arc & Chrome
  • OS: Mac OS

Thanks @remarkablemark , it worked :)