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
Remix, unlike next.js or react app, doesn't transpile the node_modules folder, so it doesn't convert commonJS modules to ES modules. The reason for the error, ig. as the Hanko elements is a cjs module.
Would it possible to modify @teamhanko/hanko-elements to better support es modules without breaking anything or it would be even better if it can be converted to es-module.
Reproducing the bug
This repo helps with it, I have tried Hanko-Auth module with Remix in this, Hanko-Remix-Starter.
Hanko Version
0.9.0
The text was updated successfully, but these errors were encountered:
Ashutosh-Bhadauriya
changed the title
Facing issue when integrating Hanko with Remix, as remix does convert commonjs modules to esmodules automatically
Facing issue when integrating Hanko with Remix, as remix does not convert commonjs modules to esmodules automatically
Nov 20, 2023
Checklist
Describe the bug
Remix, unlike next.js or react app, doesn't transpile the node_modules folder, so it doesn't convert commonJS modules to ES modules. The reason for the error, ig. as the Hanko elements is a cjs module.
Would it possible to modify
@teamhanko/hanko-elements
to better support es modules without breaking anything or it would be even better if it can be converted to es-module.Reproducing the bug
This repo helps with it, I have tried Hanko-Auth module with Remix in this, Hanko-Remix-Starter.
Hanko Version
0.9.0
The text was updated successfully, but these errors were encountered: