Error after running command - npx wrangler pages deploy dist/ error happens

:sparkles: Compiled Worker successfully
Your worker has access to the following bindings:
- D1 Databases:
- DB: test (e501084c-f3f4-423e-a47d-8d829c92bfe7)
╭──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ [b] open a browser, [d] open Devtools, [c] clear console, [x] to exit │
╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
C:\Users\Admin\Desktop\taskerdata\node_modules\wrangler\wrangler-dist\cli.js:29765
throw a;
^

MiniflareCoreError [ERR_RUNTIME_FAILURE]: The Workers runtime failed to start. There is likely additional logging output above.
at #assembleAndUpdateConfig (C:\Users\Admin\Desktop\test\node_modules\miniflare\dist\src\index.js:9178:13)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async #setOptions (C:\Users\Admin\Desktop\test\node_modules\miniflare\dist\src\index.js:9301:5)
at async Mutex.runWith (C:\Users\Admin\Desktop\test\node_modules\miniflare\dist\src\index.js:3521:16) {
code: 'ERR_RUNTIME_FAILURE',
cause: undefined
}

Node.js v20.9.0
:sparkles: Compiled Worker successfully
Your worker has access to the following bindings:
- D1 Databases:
- DB: test (e501084c-f3f4-423e-a47d-8d829c92bfe7)
╭──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ [b] open a browser, [d] open Devtools, [c] clear console, [x] to exit │
╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
C:\Users\Admin\Desktop\taskerdata\node_modules\wrangler\wrangler-dist\cli.js:29765
throw a;
^

MiniflareCoreError [ERR_RUNTIME_FAILURE]: The Workers runtime failed to start. There is likely additional logging output above.
at #assembleAndUpdateConfig (C:\Users\Admin\Desktop\test\node_modules\miniflare\dist\src\index.js:9178:13)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async #setOptions (C:\Users\Admin\Desktop\test\node_modules\miniflare\dist\src\index.js:9301:5)
at async Mutex.runWith (C:\Users\Admin\Desktop\test\node_modules\miniflare\dist\src\index.js:3521:16) {
code: 'ERR_RUNTIME_FAILURE',
cause: undefined
}

Node.js v20.9.0
I'm using nuxt. I'm not sure what could be wrong
1 Reply
KWAC
KWACOP5mo ago
here's my nuxt.config.js
import { defineNuxtConfig } from 'nuxt/config'


export default defineNuxtConfig({
ssr: true,

nitro: {
preset: 'cloudflare-pages',
},

modules: [
'@nuxtjs/tailwindcss',
'@vuesax-alpha/nuxt',
'@nuxt/image',
'nuxt-gtag',
'nuxt-multi-tenancy',
],

multiTenancy: {
tenantDynamicRoute: 'site',
rootDomains: ["localhost:3000", "taskerdata.com"],
sites: ['worker', 'requester', 'blog']
},


gtag: {
id: 'G-KV3QMHHZJ4'
},

plugins: [
'~/plugins/loading.js',
'~/plugins/recaptcha.js'
],



image: {
dir: 'assets/images'
},

css: [
'/assets/css/main.css',
'/node_modules/flag-icons/css/flag-icons.min.css',
'/node_modules/vuesax-alpha/theme-chalk/vs-loading.css'
],



compatibilityDate: '2024-07-30',
})
import { defineNuxtConfig } from 'nuxt/config'


export default defineNuxtConfig({
ssr: true,

nitro: {
preset: 'cloudflare-pages',
},

modules: [
'@nuxtjs/tailwindcss',
'@vuesax-alpha/nuxt',
'@nuxt/image',
'nuxt-gtag',
'nuxt-multi-tenancy',
],

multiTenancy: {
tenantDynamicRoute: 'site',
rootDomains: ["localhost:3000", "taskerdata.com"],
sites: ['worker', 'requester', 'blog']
},


gtag: {
id: 'G-KV3QMHHZJ4'
},

plugins: [
'~/plugins/loading.js',
'~/plugins/recaptcha.js'
],



image: {
dir: 'assets/images'
},

css: [
'/assets/css/main.css',
'/node_modules/flag-icons/css/flag-icons.min.css',
'/node_modules/vuesax-alpha/theme-chalk/vs-loading.css'
],



compatibilityDate: '2024-07-30',
})
In the
preset: cloudfare-pages
preset: cloudfare-pages
I used nitro-cloudfare-dev instead of cloudfare-pages but I suddenly started getting error with that (Cannot read properties of undefined (reading '$production'))
Want results from more Discord servers?
Add your server