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

typescript, crash bug, 2.24.1, import type with empty braces #2201

Closed
karikera opened this issue Aug 22, 2021 · 0 comments
Closed

typescript, crash bug, 2.24.1, import type with empty braces #2201

karikera opened this issue Aug 22, 2021 · 0 comments

Comments

@karikera
Copy link

import type {} from './module';
// TypeError: Cannot read property 'type' of undefined
// Occurred while linting [project]\file.ts:10
//     at getImportMap ([project]\node_modules\eslint-plugin-import\lib\rules\no-duplicates.js:284:34)
//     at ImportDeclaration ([project]\node_modules\eslint-plugin-import\lib\rules\no-duplicates.js:294:29)
//     at [project]\node_modules\eslint\lib\linter\safe-emitter.js:45:58
//     at Array.forEach (<anonymous>)
//     at Object.emit ([project]\node_modules\eslint\lib\linter\safe-emitter.js:45:38)
//     at NodeEventGenerator.applySelector ([project]\node_modules\eslint\lib\linter\node-event-generator.js:293:26)
//     at NodeEventGenerator.applySelectors ([project]\node_modules\eslint\lib\linter\node-event-generator.js:322:22)
//     at NodeEventGenerator.enterNode ([project]\node_modules\eslint\lib\linter\node-event-generator.js:336:14)
//     at CodePathAnalyzer.enterNode ([project]\node_modules\eslint\lib\linter\code-path-analysis\code-path-analyzer.js:711:23)
//     at [project]\node_modules\eslint\lib\linter\linter.js:960:32
@karikera karikera changed the title typescript, crash bug, 2.24.1, import type typescript, crash bug, 2.24.1, import type with empty braces Aug 22, 2021
@ljharb ljharb closed this as completed in aa8d566 Aug 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant