-
Notifications
You must be signed in to change notification settings - Fork 240
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Help Me #201
Comments
Did you install the packages? |
Yes. Installed and used. |
I'm unsure, maybe next does something strange to the paths but that seems unlikely |
I think the proper setting is "extends":"@tsconfig/next/tsconfig.json" but is there any other place to set it? |
Nope that goes in your tsconfig |
@ageha734 the issue is with Next.js. It expects an
you need something like this
Generally, it seems like this package doesn't play that well with Next.js expectations which does a lot of checks and automatic injection into your tsconfig.json and so it's probably better to just copy and paste from https://github.com/tsconfig/bases/blob/main/bases/next.json manually. |
Error1
tsconfig:
TypeScript 5 have the following error:
TypeError: Cannot read properties of undefined (reading 'push') at writeConfigurationDefaults (/node_modules/next/dist/lib/typescript/writeConfigurationDefaults.js:227:30) at async verifyTypeScriptSetup (/node_modules/next/dist/lib/verifyTypeScriptSetup.js:120:9) at async DevServer.verifyTypeScript (/node_modules/next/dist/server/dev/next-dev-server.js:648:34) at async DevServer.prepareImpl (/node_modules/next/dist/server/dev/next-dev-server.js:672:9) at async NextServer.prepare /node_modules/next/dist/server/next.js:165:13) at async Server.<anonymous> (/next/dist/server/lib/render-server.js:123:17) { type: 'TypeError' }
Error2
tsconfig:
TypeScript 5 have the following error:
error TS6053: File 'node_modules/@tsconfig/next/tsconfig.json' not found.
Development environment
List of commands executed
pnpm dev
pnpm remove @tsconfig/next
pnpm add -D @tsconfig/next
pnpm dev
summary
I can't build with an error even after changing the path to the Extended Settings file and re-installing.
The text was updated successfully, but these errors were encountered: