You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey @huanguolin! 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.
huanguolin
changed the title
[Bug]: Process correct ts file throw error: Property types[0] of UnionTypeAnnotation expected node to be of a type ["FlowType"] but instead got "TSTypeReference"
[Bug]: Process correct ts file throw error: expected node to be of a type ["FlowType"] but instead got "TSTypeReference"
Jan 24, 2024
馃捇
How are you using Babel?
Other (Next.js, Gatsby, vue-cli, ...)
Input code
The code is simplified from the 'asyncThrottle.ts' file.
Configuration file name
babel.config.json
Configuration
Current and expected behavior
Expected behavior: no error.
Current behavior: throw error:
Environment
node: v16.17.0
package.json:
Possible solution
No response
Additional context
I probably debugged it, and that's where the problems should have started, and since I'm relatively new to babel internals, I didn't continue.
![debug.png](https://github.com/huanguolin/babel-ts-transform-error/blob/debug/img/debug.png?raw=true)
The text was updated successfully, but these errors were encountered: