You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As far as I understand, ESM (at least in Next.js) doesn't support the "importing a folder implicitly means importing its index.js" feature. I get this error, when running the example project given in this very repo:
error - unhandledRejection: Error [ERR_UNSUPPORTED_DIR_IMPORT]: Directory import '/private/tmp/crossmint-solana-auth/node_modules/@crossmint/solana-auth-base/lib/esm/handlers' is not supported resolving ES modules imported from /private/tmp/crossmint-solana-auth/node_modules/@crossmint/solana-auth-base/lib/esm/index.js
I can temporarily resolve this by deleting the esm folder from the node_modules for this package, forcing Next to use the cjs folder instead, but there is no good way to reproduce that programmatically.
The text was updated successfully, but these errors were encountered:
As far as I understand, ESM (at least in Next.js) doesn't support the "importing a folder implicitly means importing its index.js" feature. I get this error, when running the example project given in this very repo:
I can temporarily resolve this by deleting the
esm
folder from the node_modules for this package, forcing Next to use thecjs
folder instead, but there is no good way to reproduce that programmatically.The text was updated successfully, but these errors were encountered: