facebook / facebook/jscodeshift

jscodeshift throws an error when trying to use JSXFragment node

Open
#368 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
JavaScript
Stars
10k
Forks
498
PR merge metrics
No merged PRs in 30d

Description

I'm trying to create a JSXFragment node, but jscodeshift throws an error:
```
Cannot read property 'selfClosing' of undefined
```

[Reproducable example](https://astexplorer.net/#/gist/f188096419502afb954165e498de0bb7/8eda9801456f710bba92db648e3fa541466120b6)

[It works fine with JSXElement](https://astexplorer.net/#/gist/f188096419502afb954165e498de0bb7/2ce89f46debf46770d4b9c278488fe2f7c157c03)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.