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

import-is-undefined warning issued on TS import equals declaration #3271

Closed
jakebailey opened this issue Jul 24, 2023 · 0 comments
Closed

import-is-undefined warning issued on TS import equals declaration #3271

jakebailey opened this issue Jul 24, 2023 · 0 comments

Comments

@jakebailey
Copy link

v0.18.15 moved this error to be enabled as warning by default; I noticed when compiling TypeScript that we hit this warning, but it doesn't look to be correct:

▲ [WARNING] Import "ArrayOrSingle" will always be undefined because there is no matching export in "src/harness/_namespaces/FourSlashInterface.ts" [import-is-undefined]

    src/harness/fourslashImpl.ts:9:42:
      9 │ import ArrayOrSingle = FourSlashInterface.ArrayOrSingle;
        ╵                                           ~~~~~~~~~~~~~

image

TS will elide this statement as it does other type-only declarations: Playground Link

I'm not sure how analyzable this is within esbuild; probably, this should just be a "normal" import on our end anyway, it's just leftover from the module conversion.

@evanw evanw closed this as completed in af2bc58 Jul 25, 2023
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