Error Failed to load next.config.js when starting my Blitzjs App

127 Views Asked by At

I'm trying to run my blitjs app but it fails with an error from next

Trying to run blitz dev to start app, but it fails

error Failed to load next.config.js, see more info here https://nextjs.org/docs/messages/next-config-error Error: Cannot find module 'next/dist/client/resolve-href'

2

There are 2 best solutions below

1
not interested in signing up On

may be you should restart windows, that'll fix everything

0
kevl On

Solved by updating Next.js, issue was newer blitzjs version.

You can do that by changing the version at package.json or running npm upgrade next at the root of your blitzjs project.

It worked for me to upgrade to version "next": "13.5.6"