Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
James-Ansley opened this issue Apr 30, 2025 · 0 comments

Comments

@James-Ansley
Copy link

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.

@github-project-automation github-project-automation bot moved this to Needs Triage in JSR Apr 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Needs Triage
Development

No branches or pull requests

1 participant