Nuxt SSR app crashing on Herokun with no meaningful error

Viewed 330

I have a Nuxt.js SSR application deployed to Heroku, when I try to visit the deployed app from the URL, I get an error that there's a server error.

When I check the logs, I get this error:

2021-02-25T16:12:24.942456+00:00 app[web.1]:  ERROR  Cannot find module 'defu' from '/app'
2021-02-25T16:12:24.942456+00:00 app[web.1]: 
2021-02-25T16:12:24.942458+00:00 app[web.1]:   at Function.resolveSync [as sync] (node_modules/resolve/lib/sync.js:89:15)
2021-02-25T16:12:24.942459+00:00 app[web.1]:   at node_modules/vue-server-renderer/build.prod.js:1:77685
2021-02-25T16:12:24.942459+00:00 app[web.1]:   at Object.<anonymous> (webpack:/external "defu":1:0)
2021-02-25T16:12:24.942460+00:00 app[web.1]:   at __webpack_require__ (webpack/bootstrap:25:0)
2021-02-25T16:12:24.942460+00:00 app[web.1]:   at Module.<anonymous> (server.js:3549:22)
2021-02-25T16:12:24.942460+00:00 app[web.1]:   at __webpack_require__ (webpack/bootstrap:25:0)
2021-02-25T16:12:24.942461+00:00 app[web.1]:   at Object.<anonymous> (server.js:1176:18)
2021-02-25T16:12:24.942461+00:00 app[web.1]:   at __webpack_require__ (webpack/bootstrap:25:0)
2021-02-25T16:12:24.942463+00:00 app[web.1]:   at server.js:118:18
2021-02-25T16:12:24.942463+00:00 app[web.1]:   at Object.<anonymous> (server.js:121:10)

everything works fine during development and the builds are successful, I just cannot make sense of that error.

I have tried searching the project for the keywords "defu" or "/app" but I'm not getting any results, my app does not have a "/app".

I just don't know what kind of error this is.

0 Answers
Related