Update to latest Next.js
See original GitHub issuePrerequisites
- I have written a descriptive issue title
- I have searched existing issues to ensure the bug has not already been reported
Fastify version
all
Plugin version
8.0.0
Node.js version
all
Operating system
Linux
Operating system version (i.e. 20.04, 11.3, 10)
all
Description
Due to updates in Next.js, the tests are failing because .inject()
is not compatible anymore with Next.js. They shipped this change in a semver-minor 😦.
We need some help in updating this module.
Steps to Reproduce
update Next.js and run the tests.
Expected Behavior
No response
Issue Analytics
- State:
- Created a year ago
- Comments:18 (17 by maintainers)
Top Results From Across the Web
Upgrade Guide - Next.js
Upgrade Guide. Upgrading from 12 to 13. To update to Next.js version 13, run the following command using your preferred package manager: npm...
Read more >How to update Next.js' old version to the latest version?
Update Nextjs package process is based on your nextjs installation. ... If you install nextjs globally on your laptop, use create-next-app . Then...
Read more >How To Check My NextJS Version and Update It? - Upmostly
To update the NextJS to the newest version, which at the time of writing this article is 12.1.5, you need to execute the...
Read more >Next.js - npm
The React Framework. Latest version: 13.1.1, last published: 7 days ago. Start using next in your project by running `npm i next`.
Read more >Next.js 12 - 5 Changes You Should Pay Close Attention To ...
Next.js enables developers to write quality React apps quicker. The new major update won't disappoint React developers, and it will most likely be...
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
Hi guys! I’ve opened and referenced a PR migrating all tests to real requests, as suggested and inspired by SimenB, and updating Next to the latest version, and everything seems to be working fine. Please have a look at it whenever you can. 🙏
As a side note, mocking Next.js didn’t sound really appealing to me, since we’re testing the actual integration between Fastify and Next.js and mocking one of them could yield unreally optimistic results.
The problem that Next.js is fundamentally incompatible with one of the basic primitives of Fastify (inject) remains.