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

Unknown node type: "TSBigIntKeyword" #10338

Closed
niieani opened this issue Aug 14, 2019 · 2 comments · Fixed by #10341
Closed

Unknown node type: "TSBigIntKeyword" #10338

niieani opened this issue Aug 14, 2019 · 2 comments · Fixed by #10341
Labels
area: typescript Has PR i: bug outdated A closed issue/PR that is archived due to age. Recommended to make a new issue

Comments

@niieani
Copy link

niieani commented Aug 14, 2019

Bug Report

Current Behavior
In specific cases, code containing a bigint type-annotation does not want to compile.

Input Code

const {result} = idArray.reduce(
  (a, b) => {},
  {result: [] as (number | bigint)[]},
)

Expected behavior/code
A clear and concise description of what you expected to happen (or code).

Babel Configuration (.babelrc, package.json, cli command)

{
  presets: [
    '@babel/preset-env',
    '@babel/preset-typescript',
  ],
  plugins: [
    '@babel/plugin-syntax-bigint',
  ],
}

Environment

  • Babel version(s): v7.5.5
  • Node/npm version: Node 12
  • OS: macOS 10.14.6
  • Monorepo: n/a
  • How you are using Babel: doesn't matter
@babel-bot
Copy link
Collaborator

Hey @niieani! We really appreciate you taking the time to report an issue. The collaborators on this project attempt to help as many people as possible, but we're a limited number of volunteers, so it's possible this won't be addressed swiftly.

If you need any help, or just have general Babel or JavaScript questions, we have a vibrant Slack community that typically always has someone willing to help. You can sign-up here for an invite.

@niieani
Copy link
Author

niieani commented Aug 22, 2019

Thanks @nicolo-ribaudo and @existentialism!

@lock lock bot added the outdated A closed issue/PR that is archived due to age. Recommended to make a new issue label Nov 21, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Nov 21, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area: typescript Has PR i: bug outdated A closed issue/PR that is archived due to age. Recommended to make a new issue
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants