Rollup failed to resolve @vueuse/core
Closed this issue · 0 comments
remiconnesson commented
On a fresh doc driven install followed by a set up of nuxt typography
there's an error in npm run dev
[12:02:05 AM] ERROR Failed to resolve import "@vueuse/core" from "node_modules/@nuxt-themes/typography/components/ProseCodeCopyButton.vue". Does the file exist?
and attempting to npx nuxi generate
errors with
[11:59:06 PM] ERROR [vite]: Rollup failed to resolve import "@vueuse/core" from "/home/remi/nuxt/doc-driven-app/node_modules/@nuxt-themes/typography/components/ProseCodeCopyButton.vue?vue&type=script&setup=true&lang.ts".
This is most likely unintended because it can break your application at runtime.
If you do want to externalize this module explicitly add it to
build.rollupOptions.external
[11:59:06 PM] ERROR [vite]: Rollup failed to resolve import "@vueuse/core" from "/home/remi/nuxt/doc-driven-app/node_modules/@nuxt-themes/typography/components/ProseCodeCopyButton.vue?vue&type=script&setup=true&lang.ts".
it looks like vueuse is missing from this project dependencies?
"dependencies": {
"@nuxtjs/color-mode": "^3.2.0",
"nuxt-config-schema": "^0.4.5",
"nuxt-icon": "^0.3.3",
"pinceau": "^0.18.8",
"ufo": "^1.1.1"
},
"devDependencies": {
"@nuxt-themes/tokens": "^1.9.1",
"@nuxt/content": "2.5.2",
"@nuxt/devtools": "^0.3.1",
"@nuxthq/studio": "^0.9.2",
"@nuxtjs/eslint-config-typescript": "^12.0.0",
"eslint": "^8.36.0",
"nuxt": "3.3.2",
"nuxt-plausible": "^0.1.2",
"release-it": "^15.9.3",
"typescript": "^5.0.2"
},