The project uses react 18 and vite 3,
first create it in the same level directory as src globals.d.ts
, and add the following code
declare module '*.scss';
Finally, add in the include of tsconfig "./**/*.ts"
, and add in exclude"node_modules/**/*"
"include": [
"src",
"./**/*.ts"
],
"exclude": ["node_modules/**/*"]
The directory structure is as follows