Closed FabriceSalvaire closed 8 months ago
Ok I found https://docs.astro.build/en/guides/typescript/#infer-getstaticpaths-types Now I get rid of the errors. Still have zillion of warnings dist/_astro/index.LFf77hJu.js ...
I think it is disturbing to have a new project wizard that enforce strict typescript and a documentation and examples on the web that are not valid typescript.
Duplicate of https://github.com/withastro/language-tools/issues/643 , which is ultimately the issue you're experiencing, not the code itself having errors
Astro Info
If this issue only occurs in one browser, which browser is a problem?
No response
Describe the Bug
I am learning astro... It worked fine until I was using
npm dev
but when I rannpm build
I got zillion of unreadable warnings and errors.My console is over flooded by
I copy-pasted code from https://docs.astro.build/en/core-concepts/routing/#pagination but typescript is no happy !
Same for the examples I found on the web.
Then I searched for explanations. I found #6507 and PR#2963 But I am lost.
What's the expected result?
Improve doc...
Link to Minimal Reproducible Example
irrelevant
Participation