dsherret / dsherret/ts-morph

Node.remove() missing on kind JsxElement

Open
#1,370 1 comment 1 reaction 0 assignees View on GitHub
Dominant language
TypeScript
Stars
6.2k
Forks
238
Avg merge
2m
Merged PRs (30d)
1

Description

**Describe the bug**

Version: ^17.0.1

JsxElement is missing the node method `#remove`.

**To Reproduce**

- Parse a TSX file with some JSX
- Call `node.remove()` on a JsxElement node.

**Expected behavior**

Node removal.

Contributor guide

Open the contributing guide

Research direction

Read CONTRIBUTING.md, then reproduce the issue by parsing a TSX file containing JSX and calling remove() on its JsxElement node. Trace the JsxElement node implementation and compare its available node methods; done means Node removal works for JsxElement nodes as expected.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
devtools
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
52/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.