Issue
tsconfig.json
{
"compilerOptions": {
"sourceMap": true,
"outDir": "dist",
"target": "es5",
"lib": ["es6", "dom", "dom.iterable", "esnext"],
"allowJs": true,
"skipLibCheck": true,
"strict": true,
"forceConsistentCasingInFileNames": true,
"noEmit": true,
"incremental": true,
"esModuleInterop": true,
"module": "esnext",
"moduleResolution": "node",
"resolveJsonModule": true,
"isolatedModules": true,
"jsx": "preserve",
"noImplicitAny": true,
"noImplicitThis": true,
"strictNullChecks": true
},
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx"],
"exclude": ["node_modules"]
}
I got this error in my tsconfig.json so due to this error i couldn't run "npm run build" this command when i build my nextjs project.Is anyone know to fixed this?
Solution
Add this line to tsconfig.json
file inside compilerOptions
object.
"typeRoots": ["node_modules/yup"]
Answered By - Rukshan Athapaththu
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.