Build failed when using trpc and strict tsconfig

Can I somehow ignore this error from node_modules? For some reason typescript still checks node_modules and importsNotUsedAsValues and noImplicitOverride causing me problems. I read somewhere that this happens because trpc uses .ts instead of .d.ts I have this tsconfig. { "compilerOptions": { "target": "ES2017", "module": "esnext", "moduleResolution": "node", "noEmit": true, "incremental": true, "lib": ["dom", "dom.iterable", "esnext"], "plugins": [], "baseUrl": ".", "paths": { "@/*": ["./src/*"] }, "removeComments": true, "sourceMap": false, "declaration": false, "esModuleInterop": true, "resolveJsonModule": true, "isolatedModules": true, "allowSyntheticDefaultImports": true, "skipLibCheck": true, "allowJs": false, "checkJs": false, "strict": true, "alwaysStrict": true, "forceConsistentCasingInFileNames": true, "useDefineForClassFields": true, "noImplicitAny": true, "strictNullChecks": true, "strictPropertyInitialization": true, "strictFunctionTypes": true, "noImplicitThis": true, "strictBindCallApply": true, "noFallthroughCasesInSwitch": true, "noImplicitReturns": true, "noUnusedLocals": true, "noUnusedParameters": true, "noUncheckedIndexedAccess": true, "exactOptionalPropertyTypes": true, "allowUnreachableCode": false, "allowUnusedLabels": false, "importsNotUsedAsValues": "error", "noImplicitOverride": true, "jsx": "preserve", "ignoreDeprecations": "5.0" }, "include": [ "next-env.d.ts", "next.config.js", ".eslintrc.cjs", "**/*.ts", "**/*.tsx", "**/*.cjs", "**/*.mjs", "**/*.js" ], "exclude": ["node_modules"] }
0 Replies
No replies yetBe the first to reply to this messageJoin