Skip to content

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

Open
@Ashutosh-Bhadauriya

Description

@Ashutosh-Bhadauriya

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    Status

    🔖 Up next

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions