question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Update to latest Next.js

See original GitHub issue

Prerequisites

  • 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:closed
  • Created a year ago
  • Comments:18 (17 by maintainers)

github_iconTop GitHub Comments

1reaction
drakhartcommented, Aug 12, 2022

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.

1reaction
mcollinacommented, Jul 30, 2022

The problem that Next.js is fundamentally incompatible with one of the basic primitives of Fastify (inject) remains.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found