Build nextjs site results in error undefined is not an object (evaluating 'a.title.replace')

Site: keen-ritchie-2146a3 (dev branch deploy)

I am not able to get a build log because when I attempt to access the build page I get an error stating “error undefined is not an object (evaluating ‘a.title.replace’)”.

The version I am attempting to deploy updates some dependencies:

  • nextjs from v13.4.12 to v13.5.6
  • mongodb from v5.7.0 to 6.5.0
  • @netlify/plugin-nextjs from v4.41.1 to v 5.0.0

App runs locally via cli’s netlify dev command.

Any help would be much appreciated.

Thanks,
Bob

I’ve raised this with the devs and will follow-up once we know more.

This should now be fixed.

still no luck getting site to build. I was using pnpm but I’m desperate at this point and trying different options. I’ve switched over to npm and updated my build command to nom ci && npm run build.

The build starts but gets to a point where I see this in log…

5:39:05 PM: ❯ Outdated plugins
5:39:05 PM: - @netlify/plugin-nextjs@4.9.1: latest version is 5.1.2
5:39:05 PM: To upgrade this plugin, please uninstall and re-install it from the Netlify plugins directory

my package.json has plugin pinned at 4.41.3. How do I update the plugin above? I was under the impression that if the plugin was in my package.json it would install/use from there.

Thanks in advance for any suggestions to getting the site to build.
Bob

Hard to say without seeing your repo.

But I think you should upgrade to Next.js 13.5 so you can get Next.js Runtime v5. Currently, there’s not a lot of point in trying to get the site work with v4 of the Runtime if you can upgrade and use v5.