-
Notifications
You must be signed in to change notification settings - Fork 77
Closed
Description
Describe the bug
Next.js often use global path alias @ for sources (defines in tsconfig.json through "baseUrl": "." and "paths": { "@/*": ["./src/*"] }).
And in this case autocomplete for CSS-module doesn't work.
To Reproduce
Steps to reproduce the behavior:
- Go to sandbox sources
- Make sure first line is defined with absolute path:
import styles from "@/styles/home.module.scss"; - Over cursor to variable
styleson line 8. - See the variable definition as
Expected behavior
Please modify sources:
- comment first line with absolute path
import styles from "@/styles/home.module.scss"; - uncomment second line with relative path
import styles from "../styles/home.module.scss"; - Hover variable
styleson line 8.
In this case you will see the valid definition with CSS-classes as object keys like:
TypeScript version: 5.0.4
Plugin version: 5.0.1
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels

