Skip to content

add type: module to your package.json #48

Open
@rob-bar

Description

@rob-bar

Describe the bug
I'm bumping against this error:

Internal server error: Cannot use import statement outside a module

This stackoverflow url describes the same problem:
https://stackoverflow.com/questions/75785671/error-cannot-use-import-statement-outside-a-module-while-testing-in-vite

My guess is that either type: module should be added in your published packages or you need to investigate this further.
It's funny because when I include your library inside a normal vite react project it works fine, when I do that in a remix app it complains about above error.

Any ideas?

Thanks for your help

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions