svgl icon indicating copy to clipboard operation
svgl copied to clipboard

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

Open Ansub opened this issue 8 months 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