svgl icon indicating copy to clipboard operation
svgl copied to clipboard

[BUG]: Next.js SVG for typescript throws error

Open Ansub opened this issue 1 year ago • 1 comments

So I was copying and pasting a Next.js TSX component and adding it to my codebase, but it started giving me an error. Prettier failed to format the code.

image

The error came from the component name, which was named "next.js", causing the issue and removing the . fixes the issue

Ansub avatar May 30 '24 16:05 Ansub

Hi Ansub! 😊

Thank you for letting us know! I will fix it shortly.

pheralb avatar May 30 '24 20:05 pheralb

Fixed 🚀

pheralb avatar Jun 01 '24 13:06 pheralb

Perfect, thanks!

Ansub avatar Jun 02 '24 08:06 Ansub