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

[api-extractor] Error: "Symbol not found for identifier" when using import type syntax #1780

Open
1 of 2 tasks
ashmind opened this issue Mar 16, 2020 · 0 comments
Open
1 of 2 tasks

Comments

@ashmind
Copy link

ashmind commented Mar 16, 2020

Is this a feature or a bug?

  • Feature
  • Bug

Please describe the actual behavior.

When using TypeScript new import type syntax, api-extractor produces Error: Symbol not found for identifier.

If the issue is a bug, how can we reproduce it? Please provide detailed steps and include a GitHub branch if applicable. Your issue will get resolved faster if you can make it easy to investigate.

See https://github.com/ashmind/api-extractor-bug-import-type to reproduce.
Code looks like this:

import type { Export } from './export';
export let x: Export;

Run npm test to see the error -- here is the current output:

api-extractor 7.7.8  - https://api-extractor.com/

Using configuration from [redacted]\api-extractor-bug-import-type\api-extractor.json

Error: Symbol not found for identifier: Export
npm ERR! Test failed.  See above for more details.

What is the expected behavior?

Given it's all about type definitions, import type should probably work the same way as normal import.

If this is a bug, please provide the tool version, Node.js version, and OS.

  • Tool: api-extractor
  • Tool Version: 7.7.8
  • Node Version: 10.6.0
    • Is this a LTS version? Yes
    • Have you tested on a LTS version? Yes
  • OS: Windows 10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: AE/AD
Development

No branches or pull requests

1 participant