alpiua
alpiua3w ago

defineComponent is not defined in Vue app

I'm moving a VUE project to Deno from NPM. I can't figure why, but I have troubles with import { defineComponent } from 'vue' My package.json is
{
"name": "myname",
"displayName": "My Project",
"version": "1.5.2",
"private": true,
"type": "module",
"scripts": {
"dev": "vite",
"build": "vite build",
"serve": "vite preview --mode LIVE",
"build:dev": "vite build --mode DEV",
"build:ote": "vite build --mode OTE",
"build:live": "vite build --mode LIVE",
"build:pg": "vite build --mode PG"
},
"dependencies": {
"@elastic/apm-rum-vue": "^2.1.4",
"@mdit-vue/plugin-toc": "^2.1.3",
"@popperjs/core": "^2.11.8",
"@testing-library/jest-dom": "^6.5.0",
"@unhead/vue": "^1.9.16",
"@vue/test-utils": "^2.4.6",
"axios": "^1.4.0",
"chart.js": "^4.4.0",
"chartjs-plugin-datalabels": "^2.2.0",
"glob": "^11.0.0",
"markdown-it-anchor": "^9.0.1",
"markdown-it-attrs": "^4.1.6",
"markdown-it-container": "^4.0.0",
"markdown-it-prism": "^2.3.0",
"markdown-it-toc-done-right": "^4.2.0",
"micromatch": ">=4.0.8",
"moment-timezone": "^0.5.45",
"pinia": "^2.1.6",
"primeicons": "^7.0.0",
"primevue": "3.53",
"quill": "^2.0.0",
"timers": "^0.1.1",
"unplugin-vue-markdown": "^0.26.2",
"vue": "^3.5.12",
"vue-router": "^4.0.3"
},
"devDependencies": {
"autoprefixer": "^10.4.18",
"globals": "^15.9.0",
"jsdom": "^25.0.0",
"micromatch": ">=4.0.8",
"postcss": "^8.4.35",
"sass": "^1.80.3",
"tailwindcss": "^3.4.1",
"unplugin-vue-components": "^0.26.0",
"vite": "^5.4.8",
"vue-tsc": "^2.0.29",
"@vitejs/plugin-vue": "^5.1.4"
},
"overrides": {
"rollup": ">=4.22.4",
"glob": "^11.0.0",
"path-to-regexp": "8.0.0",
"file-entry-cache": "^9.1.0",
"cookie": "^0.7.0"
}
}
{
"name": "myname",
"displayName": "My Project",
"version": "1.5.2",
"private": true,
"type": "module",
"scripts": {
"dev": "vite",
"build": "vite build",
"serve": "vite preview --mode LIVE",
"build:dev": "vite build --mode DEV",
"build:ote": "vite build --mode OTE",
"build:live": "vite build --mode LIVE",
"build:pg": "vite build --mode PG"
},
"dependencies": {
"@elastic/apm-rum-vue": "^2.1.4",
"@mdit-vue/plugin-toc": "^2.1.3",
"@popperjs/core": "^2.11.8",
"@testing-library/jest-dom": "^6.5.0",
"@unhead/vue": "^1.9.16",
"@vue/test-utils": "^2.4.6",
"axios": "^1.4.0",
"chart.js": "^4.4.0",
"chartjs-plugin-datalabels": "^2.2.0",
"glob": "^11.0.0",
"markdown-it-anchor": "^9.0.1",
"markdown-it-attrs": "^4.1.6",
"markdown-it-container": "^4.0.0",
"markdown-it-prism": "^2.3.0",
"markdown-it-toc-done-right": "^4.2.0",
"micromatch": ">=4.0.8",
"moment-timezone": "^0.5.45",
"pinia": "^2.1.6",
"primeicons": "^7.0.0",
"primevue": "3.53",
"quill": "^2.0.0",
"timers": "^0.1.1",
"unplugin-vue-markdown": "^0.26.2",
"vue": "^3.5.12",
"vue-router": "^4.0.3"
},
"devDependencies": {
"autoprefixer": "^10.4.18",
"globals": "^15.9.0",
"jsdom": "^25.0.0",
"micromatch": ">=4.0.8",
"postcss": "^8.4.35",
"sass": "^1.80.3",
"tailwindcss": "^3.4.1",
"unplugin-vue-components": "^0.26.0",
"vite": "^5.4.8",
"vue-tsc": "^2.0.29",
"@vitejs/plugin-vue": "^5.1.4"
},
"overrides": {
"rollup": ">=4.22.4",
"glob": "^11.0.0",
"path-to-regexp": "8.0.0",
"file-entry-cache": "^9.1.0",
"cookie": "^0.7.0"
}
}
deno clean rm -rf node_modules deno.json deno install
defineComponent is not defined in Vue app inside any component.
0 Replies
No replies yetBe the first to reply to this messageJoin