Skip to content

@babel/standalone transform failed when using preset-typescript #10154

@akira-cn

Description

@akira-cn

Bug Report

Current Behavior
@babel/standalone transform failed when using preset-typescript

Input Code

  • REPL or Repo link if applicable:
const _code = Babel.transform(code, { presets: ['typescript'] }).code;

Environment

  • Babel version(s): @babel/standalone@7.4.5
  • Node/npm version: node v8.9.3 / npm v6.9.0
  • OS: OSX 10.13.2
  • Monorepo: [no]
  • How you are using Babel: standalone

Additional context/Screenshots
Add any other context about the problem here. If applicable, add screenshots to help explain.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: errorsoutdatedA closed issue/PR that is archived due to age. Recommended to make a new issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions