I developed a website for a client and after making updates I’ve had two repeated build and deploy fails with the message:
Plugin “@netlify/plugin-nextjs” internal error
Could not import plugin:
Error: Cannot find module ‘next/dist/build/analysis/extract-const-value’
Require stack: …
From a quick Google search I see others have had the same issue and I should not need to install this plugin, as it is used automatically during builds of Next.js sites. I have not had this issue in the past nor recently.
we are also facing the same issue. Just tried to remove “@netlify/plugin-nextjs” plugin in netlify.toml and deployment was successfull, but the page show “Not Found”.
Thanks so much for taking the time to report this to us! It looks like the issue @TimeChimp shared was closed and merged roughly four hours ago. Please let me know if you are still encountering obstacles.