We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
1.2.5+013fdddc6
Darwin 24.1.0 arm64 arm
bun init
.module.css
Since the docs advertise CSS Modules support, it's expected to not have to define the TypeScript types for them manually.
TypeScript error Cannot find module '*.module.css' or its corresponding type declarations.ts (2307)
Cannot find module '*.module.css' or its corresponding type declarations.ts (2307)
This can be worked around by adding
declare module '*.module.css' { const classes: { readonly [key: string]: string } export default classes }
to a .d.ts file, but it feels off to have to do so.
The text was updated successfully, but these errors were encountered:
Oh lol yeah this should be added to @types/bun
@types/bun
Feel free to make a PR updating https://github.com/oven-sh/bun/blob/main/packages/bun-types/ambient.d.ts
Sorry, something went wrong.
Oh lol yeah this should be added to @types/bun Feel free to make a PR updating https://github.com/oven-sh/bun/blob/main/packages/bun-types/ambient.d.ts
Done
Successfully merging a pull request may close this issue.
What version of Bun is running?
1.2.5+013fdddc6
What platform is your computer?
Darwin 24.1.0 arm64 arm
What steps can reproduce the bug?
bun init
with React template.module.css
fileWhat is the expected behavior?
Since the docs advertise CSS Modules support, it's expected to not have to define the TypeScript types for them manually.
What do you see instead?
TypeScript error
Cannot find module '*.module.css' or its corresponding type declarations.ts (2307)
Additional information
This can be worked around by adding
to a .d.ts file, but it feels off to have to do so.
The text was updated successfully, but these errors were encountered: