Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ERROR Uncaught Exception {"errorType":"Error","errorMessage":"Could not load Nuxt configuration. #738

Open
teodormalmborg opened this issue Nov 10, 2022 · 0 comments

Comments

@teodormalmborg
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant