Open
Description
Describe the bug
When using an npm package that exports a scss
file, an error occurs: "Property 'MenuEnter' does not exist on type '{}'"
To Reproduce
Steps to reproduce the behavior:
npm install bulma
- add module to scss file (menu)
@use "bulma/sass/utilities/mixins";
- use it
.MenuEnter {
background: red;
@include mixins.from(1280px) {
background: blue;
}
}
- import styles into .ts file
import styles from "./menu.module.scss";
- Try using this
styles.MenuEnter
- See error "Property 'MenuEnter' does not exist on type '{}'"
Expected behavior
No error messages
Desktop (please complete the following information):
- OS: Linux Mint 22 Cinnamon
- Browser Chromium
- Version 133.0.6943.53 (Official Build) for Linux Mint (64-bit)
Smartphone (please complete the following information):
I haven't checked.
Additional context
tsconfig.json
{
"$schema": "https://json.schemastore.org/tsconfig",
"compilerOptions": {
"jsx": "react-jsx",
"module": "esnext",
"outDir": "${configDir}/dist",
"moduleResolution": "bundler",
"noEmitOnError": true,
"plugins": [
{
"name": "typescript-plugin-css-modules",
"options": {
"goToDefinition": true
}
}
],
"resolveJsonModule": true,
"target": "esnext"
},
"exclude": ["node_modules", "${configDir}/dist"],
"extends": ["@tsconfig/strictest/tsconfig"]
}
"typescript-plugin-css-modules": version "5.1.0"
bulma source: https://github.com/jgthms/bulma
Metadata
Metadata
Assignees
Labels
No labels