-
Notifications
You must be signed in to change notification settings - Fork 13.3k
import type from from "foo" #56376
Copy link
Copy link
Closed
Labels
BugA bug in TypeScriptA bug in TypeScriptFix AvailableA PR has been opened for this issueA PR has been opened for this issue
Milestone
Description
🔎 Search Terms
- type import
- parser
- import type from from
🕗 Version & Regression Information
- This is a crash
- This changed between versions ______ and _______
- This changed in commit or PR _______
- This is the behavior in every version I tried, and I reviewed the FAQ for entries about _________
- I was unable to test this on prior versions because _______
⏯ Playground Link
💻 Code
import from from "react"; // ok
import type x from "react"; // ok
import type from from "react"; // parse error🙁 Actual behavior
parse error
🙂 Expected behavior
I have merely observed its inconsistency, without discerning whether it is by design or a bug.
Additional information about the issue
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
BugA bug in TypeScriptA bug in TypeScriptFix AvailableA PR has been opened for this issueA PR has been opened for this issue