Skip to content
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

Incorrect import causes typescript compilation issue #1215

Open
IARI opened this issue Nov 9, 2023 · 0 comments
Open

Incorrect import causes typescript compilation issue #1215

IARI opened this issue Nov 9, 2023 · 0 comments

Comments

@IARI
Copy link

IARI commented Nov 9, 2023

Describe the bug

In https://github.com/Tonejs/Tone.js/blob/dev/Tone/core/type/Units.ts there is the import statement

import { Note } from "./NoteUnits";

This causes a TS compilation error
error TS1484: 'Note' is a type and must be imported using a type-only import when 'verbatimModuleSyntax' is enabled.

To Reproduce

Add tone.js as a dependency in a project with 'verbatimModuleSyntax' is enabled.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant