#Lots of typescript warnings in generated files

2 messages · Page 1 of 1 (latest)

mighty hamlet
#

I just created a new project with Astro, Tailwind, react and Shadcn/ui and i get lots if warnings in my build process, everything works as expected but this doesnt look pretty:

Result (9 files):
- 0 errors
- 0 warnings
- 48 hints

This is how the 48 hints look like:

dist/_astro/client.5I5BMcNS.js:29:9797 - warning ts(6133): 's' is declared but its value is never read.

and

dist/_astro/client.5I5BMcNS.js:9:1172 - warning ts(80002): This constructor function may be converted to a class declaration.

Can somebody point me in the right directions, there seem to be something about react?

karmic dagger
#

You can add the dist folder to your exclude in tsconfig.json