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

Cannot parse import type from from #8308

Closed
magic-akari opened this issue Nov 19, 2023 · 1 comment · Fixed by #8309
Closed

Cannot parse import type from from #8308

magic-akari opened this issue Nov 19, 2023 · 1 comment · Fixed by #8309
Labels
Milestone

Comments

@magic-akari
Copy link
Member

Describe the bug

Input code

import type from from "foo";

Config

{
  "jsc": {
    "parser": {
      "syntax": "typescript",
      "tsx": false
    },
    "loose": false,
    "minify": {
      "compress": false,
      "mangle": false
    },
    "target": "es2022"
  },
  "module": {
    "type": "es6"
  },
  "minify": false,
  "isModule": true
}

Playground link (or link to the minimal reproduction)

https://play.swc.rs/?version=1.3.94-nightly-20231016.1&code=H4sIAAAAAAAAA8vMLcgvKlEoqSxIVUgrys%2BFEEpp%2BflK1gAF8uDMHAAAAA%3D%3D&config=H4sIAAAAAAAAA22PPQrDMAyF95zCaO5QPHToHXoI4yrBwX9YCtSE3L12YocUuknve5Ke1kEImEnDU6ylLE1UiTCdfVEoe1afogDniKSTiQy3TpkqGpUl3KXtIGBDIOykac54M%2Bbrbh1cTEj0a6xW5SeLfzezShNyzYMk71LC0Bi48F72ofZLzXv4HhdTD3EeBEOvPslpwWH7AvDL3IgXAQAA

SWC Info output

No response

Expected behavior

Parsed without error.

Actual behavior

Parse error

Version

1.3.94-nightly-20231016.1

Additional context

No response

@kdy1 kdy1 added this to the Planned milestone Nov 20, 2023
kdy1 pushed a commit that referenced this issue Nov 20, 2023
@kdy1 kdy1 modified the milestones: Planned, v1.3.98 Nov 21, 2023
@swc-bot
Copy link
Collaborator

swc-bot commented Dec 21, 2023

This closed issue has been automatically locked because it had no new activity for a month. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you.

@swc-project swc-project locked as resolved and limited conversation to collaborators Dec 21, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Development

Successfully merging a pull request may close this issue.

3 participants