diff --git a/global.d.ts b/global.d.ts
deleted file mode 100644
index 02f8d6c..0000000
--- a/global.d.ts
+++ /dev/null
@@ -1,7 +0,0 @@
-///
-
-declare module "*.module.css" {
- const classes: { readonly [key: string]: string };
- export default classes;
-}
-// permet à TS de reconnaître les fichiers modules.css
diff --git a/src/pages/Profile/ProfilePage.tsx b/src/pages/Profile/ProfilePage.tsx
index bbcbb71..4c2fc6b 100644
--- a/src/pages/Profile/ProfilePage.tsx
+++ b/src/pages/Profile/ProfilePage.tsx
@@ -1,5 +1,6 @@
import { useContext, useEffect, useState, useRef } from "react";
-import styles from "../Profile/ProfilePage.module.css";
+// @ts-ignore
+import styles from "./ProfilePage.module.css";
import { AuthContext } from "../../contexts/auth/AuthContext";
import formatDate from "../../utils/date/formatDate";
diff --git a/src/vite-env.d.ts b/src/vite-env.d.ts
new file mode 100644
index 0000000..b67473e
--- /dev/null
+++ b/src/vite-env.d.ts
@@ -0,0 +1,6 @@
+///
+
+declare module "*.module.css" {
+ const classes: { [key: string]: string };
+ export default classes;
+}
diff --git a/tsconfig.json b/tsconfig.json
index b3a52d5..3417353 100644
--- a/tsconfig.json
+++ b/tsconfig.json
@@ -14,6 +14,6 @@
"allowJs": true,
"esModuleInterop": true
},
- "include": ["src"],
- "exclude": ["**/*.js"]
+ "include": ["src"]
+ // "exclude": ["**/*.js"]
}