Skip to content

Local typescript module import #11357

@JANDA-Developers

Description

@JANDA-Developers

I made a local module with typescript and tried to use it in another project by creating an npm link.

But I got an error saying it couldn't compile.

message...
Module parse failed: The keyword 'interface' is reserved (10:0

I wonder if this is a part supported by the create react app environment or not.

Since I often have to modify my modules, I made a typescript-based module in the local environment and imported the module through the Npm link.
But I didn't compile the module. I didn't do it because I thought it would take a long time to compile. I imported index.tsx in src instead of dist folder.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions