#SyntaxError: Unexpected token 'export' (pnpm package)

1 messages · Page 1 of 1 (latest)

loud wraith
#

Having the same issue :/

neat cobalt
#

@loud wraith did you find a solution?

gloomy pilot
#

Can someone provide a reproduction?

loud wraith
loud wraith
#

It's using yarn instead of pnpm but that doesn't seem to be related to the error

gloomy pilot
#

Most likely this is gonna be a issue of using an ESM module inside of a CJS application. I'll take a look when I've got the time tomorrow