diff --git a/apps/frontend/src/instrumentation.ts b/apps/frontend/src/instrumentation.ts index ecb6528..ae8cc8b 100644 --- a/apps/frontend/src/instrumentation.ts +++ b/apps/frontend/src/instrumentation.ts @@ -2,11 +2,11 @@ import * as Sentry from "@sentry/nextjs"; export async function register() { if (process.env.NEXT_RUNTIME === "nodejs") { - await import("../sentry.server.config"); + await import("../sentry.server.config.js"); } if (process.env.NEXT_RUNTIME === "edge") { - await import("../sentry.edge.config"); + await import("../sentry.edge.config.js"); } } diff --git a/apps/frontend/tsconfig.json b/apps/frontend/tsconfig.json index 8095e65..ad8eae4 100644 --- a/apps/frontend/tsconfig.json +++ b/apps/frontend/tsconfig.json @@ -10,8 +10,8 @@ "noEmit": true, "incremental": true, "esModuleInterop": true, - "module": "ESNext", - "moduleResolution": "Bundler", + "module": "NodeNext", + "moduleResolution": "NodeNext", "resolveJsonModule": true, "isolatedModules": true, "jsx": "preserve", @@ -24,7 +24,7 @@ "preserveWatchOutput": true, "baseUrl": ".", "paths": { - "@/*": ["./src/*"] + "@/*": ["./src/*.ts", "./src/*"] } }, "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts", "tailwind.config.ts"],