Fix VSCode css module import error highlighting.
KrischnaGabriel opened this issue · 1 comments
KrischnaGabriel commented
Describe the bug
VSCode highlights typescript syntax.
Import statements of css modules are shown as errors.
A "globals.d.ts" file should be included in the src folder with the content
declare module "*.module.css";
declare module "*.module.scss";
when initializing an new typescript project with npx degit solidjs/templates/ts my-ap
to fix this issue.
Your Example Website or App
N.A.
Steps to Reproduce the Bug or Issue
npx degit solidjs/templates/ts my-ap
- Open src/App.tsx in vscode or a fork of vscode.
Expected behavior
N.A.
Screenshots or Videos
Without the "globals.d.ts" file:
Platform
- OS: Linux Mint 20.3 Cinnamon
- Browser: N.A.
- Version: ^1.4.2
Additional context
No response
amoutonbrady commented