You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Windows 11 22H2
VS Code 1.84.2
CSS Modules extension 0.5.1
Not sure if it is a bug or I am just missing some additional config. It works without alias.
Steps:
Open new vscode window.
Create empty vscode profile (File - Preferences - Profiles - Create Profile) and switch to it.
Create nextjs project with src dir and without app router and tailwind:
npx create-next-app@latest
√ What is your project named? ... my-app
√ Would you like to use TypeScript? ... Yes
√ Would you like to use ESLint? ... Yes
√ Would you like to use Tailwind CSS? ... No
√ Would you like to use src/ directory? ... Yes
√ Would you like to use App Router? (recommended) ... No
√ Would you like to customize the default import alias (@/*)? ... No
Windows 11 22H2
VS Code 1.84.2
CSS Modules extension 0.5.1
Not sure if it is a bug or I am just missing some additional config. It works without alias.
Steps:
Generated project will have:
tsconfig.json
and
import styles from '@/styles/Home.module.css'
inmy-app\src\pages\index.tsx
my-app\src\pages\index.tsx
and try going to existing classes and autocomplete - it does not work.import styles from '../styles/Home.module.css'
- it starts working.The text was updated successfully, but these errors were encountered: