Closed polluterofminds closed 1 year ago
@polluterofminds Did you enable esm support as described here: https://nextjs.org/blog/next-11-1#es-modules-support
Just tested this, and I get the same error. Looks like this is a known Next.js issue: https://github.com/vercel/next.js/issues/25454
Did their fix solve this? I think we need to bring in stacktrace.js and convert it to be 100% esm
I just confirmed this is still broken in 2.0.1 but is fixed in main! I tested it by running npm install --save ../Exceptionless.JavaScript/packages/react
When trying to import the @exceptionless/react package in Next.js, the following error occurs:
Steps to reproduce:
pages/index.js
add the import line at the top:import { Exceptionless } from "@exceptionless/react";