Deployment issues using typescript and css modules #3
-
Hey peeps 👋🏼 Have been tinkering with a new typescript project and noticed (and ultimately fixed) some issues with CSS module type-checking out of the box that I thought I'd share and surface in case others run into the same. First, I needed a type declaration for my project like styles.d.ts below as I would otherwise get an error like: styles.d.ts
Second, I happen to like naming my modules with the Hope this helps anyone that may be running into the same! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hey @jf2978! Good call on both of these:
Thanks again for the report! |
Beta Was this translation helpful? Give feedback.
Hey @jf2978! Good call on both of these:
declarations.d.ts
file to new TS projects, but it turns out our packaging script was removing it from the Nokkio CLI, causing this to break 😬 We'll get this fixed in the next release!module.css
vsmodules.css
: good call, we'll supportmodule.css
in the next version as well, this was just an oversight.Thanks again for the report!