Skip to content

SyntaxError: Identifier 'loader' has already been declared when 'loader' is imported and then re-exported #203

@rmichalak

Description

@rmichalak

I'm getting:

[plugin:react-router:route-exports] Identifier 'loader' has already been declared.

When I import loader from a separate file and then re-export it.

Example:
https://github.com/rmichalak/react-router-devtools-bug

This is the commit that breaks npm run dev: rmichalak/react-router-devtools-bug@ac44bed
When you revert it, everything works.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions