Open fraywing opened 1 year ago
I'm not familiar with Next.js, but it looks like it is trying to load this package as CommonJS, but it should be loaded as ESM instead (import
instead of require
). Perhaps https://nextjs.org/docs/messages/import-esm-externals might be applicable?
Happens on Nextjs 13.x and 12.x