-
Notifications
You must be signed in to change notification settings - Fork 28.5k
Typescript type error when running a configuration similar to custom-server-typescript example #12854
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
Comments
Similar issue in a private codebase: using a custom server and using TypeScript Note that:
For me, it's the TypeScript upgrade to
|
Running into the same issue in a private project. However, I can't reproduce it always. |
Same here error with Next |
Seems it has been fixed (microsoft/TypeScript#38596) |
The issue is still actual |
I confirm that the problem is still present with TS |
This problem still persists. {
"dependencies": {
"next": "9.5.1",
"typescript": "^3.9.7"
}
} @Timer, why is this issue closed? |
@Timer yeap, still actual @dakotaJang He closed the problem because the bug does not play on TS version 3.8.3. In the example, this version is strictly spelled out. https://github.com/vercel/next.js/blob/canary/examples/custom-server-typescript/package.json#L21 update: Fixed in TS ^4.0.2 |
This issue has been automatically locked due to no recent activity. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you. |
Uh oh!
There was an error while loading. Please reload this page.
Bug report
Describe the bug
After upgrading to Next 9.4, I was having an issue with what seems like Typescript reporting an error in my custom TS server project:
The logging is a bit noisy, but compilation is successful.
To Reproduce
This issue could be reproduced by just running the official nextjs custom-server-typescript example here: https://github.com/zeit/next.js/tree/canary/examples/custom-server-typescript
essentially curl the example, cd into the directory, npm install && npm run dev, visit localhost:3000
Expected behavior
Should compile without any errors.
System information
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: