react-extract.nvim icon indicating copy to clipboard operation
react-extract.nvim copied to clipboard

Error when attempting extraction of JSX: attempt to get length of local 'properties' (a nil value)

Open ryardley opened this issue 2 years ago • 1 comments

Perhaps I am misusing what this is about but I was hoping to take a piece of JSX and extract it to a component in a new file.

I am using NvChad.

I have tsserver setup:

image

My configuration is the default configuration:

image

I selected some extractable JSX using "V" and hit "<leader>re" and then was asked for a filename and input: "thingbobfoo.tsx" then was greeted with an error:

image

A new empty buffer is opened with the filename but there is nothing in there and the original buffer has not been changed at all.

ryardley avatar Sep 19 '23 21:09 ryardley

Exact same scenario but using LunarVim and it just crashes the whole editor. Possibly throwing the same error in the background. Anyone know how to fix?

dcmwong avatar Jan 02 '24 09:01 dcmwong