teamhanko / hanko

Authentication and user management system optimized for passkeys

Home Page:https://hanko.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Facing issue when integrating Hanko with Remix, as remix does not convert commonjs modules to esmodules automatically

Ashutosh-Bhadauriya opened this issue · comments

Checklist

  • I could not find a solution in the existing issues or docs.
  • I agree to follow this project's Code of Conduct.

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.

Screenshot_Oct_25_1
Screenshot_Oct_25

Hanko Version

0.9.0