T
TanStack10mo ago
cloudy-cyan

Stylesheet app.css?url import

While it works, I'm getting a Typescript error importing a stylesheet. Is this to be expected, or do I need to do it differently?
No description
4 Replies
rival-black
rival-black10mo ago
add /// <reference types="vinxi/types/client" /> to your client entry file
cloudy-cyan
cloudy-cyanOP10mo ago
rock on! I noticed the demo projects had module "*?url", but I couldn't find where it was coming from. Thanks!
rival-black
rival-black10mo ago
if this is missing from our examples, please create a PR to add this
cloudy-cyan
cloudy-cyanOP10mo ago
Yeah I think I copied from the Getting started, but I just checked and it's in there. So either I didn't copy it correctly or it was added later (I started with this toy project on Aug 1st)

Did you find this page helpful?