napmn / react-extract.nvim

Neovim plugin for extracting jsx into React component
MIT License
110 stars 5 forks source link

[Help] bad argument #3 to 'gsub' #5

Open dinhmai74 opened 1 year ago

dinhmai74 commented 1 year ago

I got this error when trying to extract to new file

Error executing vim.schedule lua callback: ...cker/start/react-extract.nvim/lua/react-extract/init.lua:49: bad argument #3 to 'gsub' (string/function
/table expected)

I use treesitter, lsp with https://github.com/jose-elias-alvarez/typescript.nvim

image
napmn commented 1 year ago

Thanks for reporting this issue! Will take a look at it in upcoming days