Skip to content
This repository was archived by the owner on Nov 15, 2022. It is now read-only.
This repository was archived by the owner on Nov 15, 2022. It is now read-only.

Import returning error "is not a module" when try to use hookrouter with CRA + typescript #158

@jrmarqueshd

Description

@jrmarqueshd

Hello Devs.

To the owner repo or who wants to help him

I'm catch error when a import this module in my app component.

[App.tsx]
image

this is my package.json

[package.json]
image

For developers who want to solve the problem superficially until the owner of the repo solves it

I managed to fix this error by migrating the route config to a file called routes.js, it seems that the problem happens only in tsx | ts extensions!

after migrating the route settings, it looked like this:

[routes.js]
image

and in my App.tsx file, it looked like this:

[App.tsx]
image

I hope I have helped in some way. 😄

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