[typescript] Broken compatibility with @types/next
See original GitHub issueBug report
Describe the bug
Looks like this after this change https://github.com/zeit/next.js/pull/7154/files#diff-e5f184d6408bb983da44fe3b0f27d4faR10 external types from @types/next are no longer used.
To Reproduce
git clone git@github.com:adam187/next-js-ts-error-example.git
yarn install
yarn ts:check:server
Expected behavior
Types should work properly
System information
- Version of Next.js: 8.1.1-canary.12
Issue Analytics
- State:
- Created 4 years ago
- Comments:9 (5 by maintainers)
Top Results From Across the Web
[typescript] Broken compatibility with @types/next · Issue #7247
@timneutkens I agree it's not really a bug, but it can be problematic for typescript users that want to upgrade to next.js@8.1.1 and...
Read more >Documentation - TypeScript 3.9
This goal of this type operator is to accurately model the way that Promise unwrapping works in JavaScript. We initially anticipated shipping awaited...
Read more >Are typescript 3.0 type definitions backwards compatible to ts2?
I'm writing a react component library in typescript 3. How can I ensure that my generated .d.ts files are compatible with typescript 2 ......
Read more >Announcing TypeScript 4.8 - Microsoft Developer Blogs
While TypeScript strives to avoid major breaks, even small changes in the built-in libraries can cause issues. We don't expect major breaks as...
Read more >TypeScript errors and how to fix them
Be aware that this breaks the contract (signature) of the function and is ... ES5/ES3 because it does not refer to a Promise-compatible...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

@nhooyr you can install
next@canaryto try them!Hi @adam187! Unfortunately, this is unavoidable for any package transitioning from external typings to provided type declarations.
I’ll close this as unactionable – btw: we’ll likely release these changes under
8.2.0(not8.1.1)!