Oung Seik
Oung Seik
TtRPC
Created by Oung Seik on 2/12/2025 in #❓-help
Can't build NextJS with TRPC vanilla client.
Yes bro. Currently I fix that by removing type checking in the nextjs production build. I should remove path alias as you suggest as well.
4 replies
TtRPC
Created by Oung Seik on 2/12/2025 in #❓-help
Can't build NextJS with TRPC vanilla client.
And this is the tsconfig.json of the server.
{
"$schema": "https://json.schemastore.org/tsconfig",
"display": "Default",
"compilerOptions": {
"declaration": true,
"emitDeclarationOnly": true,
"outDir": "dist",
"declarationMap": true,
"esModuleInterop": true,
"incremental": false,
"isolatedModules": true,
"lib": [ "es2022" ],
"module": "CommonJS",
"moduleDetection": "force",
"moduleResolution": "bundler",
"noUncheckedIndexedAccess": true,
"resolveJsonModule": true,
"skipLibCheck": true,
"allowJs": true,
"strict": true,
"target": "ESNext",
"typeRoots": ["./node_modules/@types", "./src/types"],
"baseUrl": ".",
"paths": {
"@/*": [ "./src/*" ]
}
},
"include": [ "src", "tests" ],
"exclude": [
"**/node_modules",
"**/.*/"
]
}
{
"$schema": "https://json.schemastore.org/tsconfig",
"display": "Default",
"compilerOptions": {
"declaration": true,
"emitDeclarationOnly": true,
"outDir": "dist",
"declarationMap": true,
"esModuleInterop": true,
"incremental": false,
"isolatedModules": true,
"lib": [ "es2022" ],
"module": "CommonJS",
"moduleDetection": "force",
"moduleResolution": "bundler",
"noUncheckedIndexedAccess": true,
"resolveJsonModule": true,
"skipLibCheck": true,
"allowJs": true,
"strict": true,
"target": "ESNext",
"typeRoots": ["./node_modules/@types", "./src/types"],
"baseUrl": ".",
"paths": {
"@/*": [ "./src/*" ]
}
},
"include": [ "src", "tests" ],
"exclude": [
"**/node_modules",
"**/.*/"
]
}
4 replies
TtRPC
Created by volks on 10/12/2022 in #❓-help
Losing the type between the client and server
I have to debug this issue almost 5 hours straight. For someone who struggle like me. It works for me by adding this. path is the path to the trpc server.
{
"compilerOptions": {
//...
"composite": true,
},
"references": [{"path": "../server"}],
}
{
"compilerOptions": {
//...
"composite": true,
},
"references": [{"path": "../server"}],
}
25 replies