Skip to content

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

@Ashutosh-Bhadauriya

Description

@Ashutosh-Bhadauriya
Contributor

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

Activity

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[/+] on Nov 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @FlxMgdnz@Ashutosh-Bhadauriya

        Issue actions

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