Hello, lately one of my Nextjs apps is not working after deploying. The error message I am getting on browser is: Internal Server Error.
I have checked the logs and the error I see is:
ERROR Error: Cannot find module 'next/dist/server/future/route-modules/pages/vendored/contexts/amp-context'
During build I see a warning log as below:
Outdated plugins @netlify/plugin-nextjs@4.41.3: latest version is 5.7.1 To upgrade this plugin, please uninstall and re-install it from the Netlify plugins directory ((https://app.netlify.com/plugins))
I tried to change the Node version from 18.x to 20.x and the same warning is shown.
I also upgraded NextJs from 13.5.3 to 13.5.6 but still the same warning is appearing.
Checked Netlify documentation for this issue and as it is explained the upgrade of Nextjs plugin is done automatically if you already use NextJs 13.5+ and Node 18+ but this is not working. Are those errors related?
I am using pnpm with turbo (monorepo) and until now this has worked fine.
Is there a way to upgrade manually the nextjs plugin to use runtime v5?