Cannot start nuxt: Unexpected token ':'
Hi, i've got this error whenever i tried to start the nuxt app
here's my nuxt.config
Cannot start nuxt: Unexpected token ':' 4:44:34 PM
at ModuleLoader.moduleStrategy (node:internal/modules/esm/translators:118:18)
at callTranslator (node:internal/modules/esm/loader:273:14)
at ModuleLoader.moduleProvider (node:internal/modules/esm/loader:278:30)
Cannot start nuxt: Unexpected token ':' 4:44:34 PM
at ModuleLoader.moduleStrategy (node:internal/modules/esm/translators:118:18)
at callTranslator (node:internal/modules/esm/loader:273:14)
at ModuleLoader.moduleProvider (node:internal/modules/esm/loader:278:30)
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
devtools: { enabled: true },
modules: ["@nuxt/ui", "@vueuse/nuxt"],
build: {
transpile: ["@syncfusion"],
},
vite: {
optimizeDeps: {
exclude: ["@syncfusion/ej2-vue-charts"],
},
},
});
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
devtools: { enabled: true },
modules: ["@nuxt/ui", "@vueuse/nuxt"],
build: {
transpile: ["@syncfusion"],
},
vite: {
optimizeDeps: {
exclude: ["@syncfusion/ej2-vue-charts"],
},
},
});
0 Replies