Skip to content

"Import symbol" generates unrunnable imports when package name is a reserved word #1092

Open
@James-Ansley

Description

@James-Ansley

For example: @mycoolscope/enum generates the import import * as enum from "@mycoolscope/enum";.

One possible workaround is to capitalise package names when the package name is a keyword. E.g. import * as Enum from "@mycoolscope/enum";. Either that, or people can just recognise when a package name is a reserved word and come up with their own workarounds.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Needs Triage

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions