I am having issues with my website www.marblesofmumbles.com. I have reverted back any changes and I am still getting this error even though I don’t use any netlify functions.
This function has crashed
Runtime.ImportModuleError - Error: Cannot find module 'server' Require stack: - /var/runtime/index.mjs
Is this a Netlify issue or do you think it could be a Nuxt 3 dependency issue? Really worrying as my live website has been down for the last hour
Hello @SamO , I am a lead developper of BullvBear. Since this afternoon, I am having exactly the same issue than @monkemedia and g.vanengelen .
Our Nuxt 3 on Netlify was working fine for 3 months straight. We didn’t update any dependency recently, nor Nuxt 3 got any recent updates.
We reverted our last commits to some old ones that had “Previews” working fine. And when we rebuild them, we get this exact same error.
We don’t have any problem on localhost, nor on a custom VPS.
I deeply think that something changed on Netlify Lambda function behavior. Maybe my intuition is wrong, but if you get more feedbacks like this, please consider an investigation.
You shouldn’t revert the changes, you should just lookup an older deployment in netllfy. And publish that again. Creating new deployments doesn’t work.
Thanks everyone for your reports. As @g.vanengelen pointed out, this has now been resolved. If you redeploy your site it should fix the issue. Thanks for your patience. The issue was that a change made to the way we bundle ES modules in functions caused problems with the server entrypoint generated by Nuxt 3. We’ve rolled-back that change and will investigate further what happened.