Open mongolyy opened 1 year ago
Any solutions?
This might be related to settings in your tsconfig.json
or the type field in your package.json
. When you put import SuperJSON from "superjson"
into one of your source files, does it fail with the same error?
You are distributing this package as commonjs while you also migrated superjson to use ESM, which is incompatible
When I upgraded superjson to version 2.0.0 and ran the
next build
command, I got the following error:I think this is due to superjson becoming ES Module in 2.0.0.
Environement