ERROR Uncaught Exception {"errorType":"Error","errorMessage":"Could not load Nuxt configuration.
teodormalmborg opened this issue · comments
When trying to deploy my Nuxt app on Vercel I get the above. Enire error:
2022-11-09T11:07:50.477Z undefined ERROR Uncaught Exception {"errorType":"Error","errorMessage":"Could not load Nuxt configuration. Make sure all dependencies are listed in package.json dependencies or in serverFiles within builder options:\n Error: Cannot find module 'esm'\nRequire stack:\n- /var/task/vercel__launcher.js\n- /var/runtime/index.mjs","stack":["Error: Could not load Nuxt configuration. Make sure all dependencies are listed in package.json dependencies or in serverFiles within builder options:"," Error: Cannot find module 'esm'","Require stack:","- /var/task/vercel__launcher.js","- /var/runtime/index.mjs"," at Object. (/var/task/vercel__launcher.js:23:13)"," at Module._compile (node:internal/modules/cjs/loader:1105:14)"," at Object.Module._extensions..js (node:internal/modules/cjs/loader:1159:10)"," at Module.load (node:internal/modules/cjs/loader:981:32)"," at Function.Module._load (node:internal/modules/cjs/loader:822:12)"," at Module.require (node:internal/modules/cjs/loader:1005:19)"," at require (node:internal/modules/cjs/helpers:102:18)"," at _tryRequireFile (file:///var/runtime/index.mjs:869:37)"," at _tryRequire (file:///var/runtime/index.mjs:919:25)"," at _loadUserApp (file:///var/runtime/index.mjs:945:22)"]} 2022-11-09T11:07:52.817Z undefined ERROR Uncaught Exception {"errorType":"Error","errorMessage":"Could not load Nuxt configuration. Make sure all dependencies are listed in package.json dependencies or in serverFiles within builder options:\n Error: Cannot find module 'esm'\nRequire stack:\n- /var/task/vercel__launcher.js\n- /var/runtime/index.mjs","stack":["Error: Could not load Nuxt configuration. Make sure all dependencies are listed in package.json dependencies or in serverFiles within builder options:"," Error: Cannot find module 'esm'","Require stack:","- /var/task/vercel__launcher.js","- /var/runtime/index.mjs"," at Object. (/var/task/vercel__launcher.js:23:13)"," at Module._compile (node:internal/modules/cjs/loader:1105:14)"," at Object.Module._extensions..js (node:internal/modules/cjs/loader:1159:10)"," at Module.load (node:internal/modules/cjs/loader:981:32)"," at Function.Module._load (node:internal/modules/cjs/loader:822:12)"," at Module.require (node:internal/modules/cjs/loader:1005:19)"," at require (node:internal/modules/cjs/helpers:102:18)"," at _tryRequireFile (file:///var/runtime/index.mjs:869:37)"," at _tryRequire (file:///var/runtime/index.mjs:919:25)"," at _loadUserApp (file:///var/runtime/index.mjs:945:22)"]} Unknown application error occurred Runtime.Unknown
Package.json:
{
"name": "vaivai-shop",
"version": "1.0.0",
"private": true,
"scripts": {
"dev": "nuxt",
"build": "nuxt build",
"start": "nuxt start",
"generate": "nuxt generate"
},
"devDependencies": {
"aos": "^2.3.4",
"core-js": "^3.25.3",
"nuxt": "^2.13.3",
"nuxt-shopify": "^1.16.0",
"@nuxtjs/vuetify": "^1.11.3",
"vue": "^2.7.10",
"vue-server-renderer": "^2.7.10",
"vue-tasty-burgers": "^1.2.3",
"vue-template-compiler": "^2.7.10",
"locomotive-scroll": "^4.1.3",
"aos": "^2.3.4",
"vue-mq": "^1.0.1",
"vuex-persist": "^3.1.3",
"vue-vimeo-player": "^0.2.2"
}
}
Would appreciate some ideas, thanks.