"Move to File" refactor errors with JSX #24741
Labels
Bug
A bug in TypeScript
Domain: Refactorings
e.g. extract to constant or function, rename symbol
Fixed
A PR has been merged for this issue
Milestone
TypeScript Version: 3.0.0-dev.20180606
Search Terms: "move to file" jsx
Code
index.tsx
tsconfig.json
package.json
Expected behavior:
When selecting them and triggering the "Move to file" refactor, each class/variable should be moved to their own files, named appropriately.
Actual behavior:
Refactor works with
HasNoJSX
Attempting to refactor with
HasJSX
shows this error:Related Issues:
The text was updated successfully, but these errors were encountered: