Open spyderdsn opened 8 months ago
import VueNotion, { getPageBlocks, getPageTable } from "vue-notion";
VS Code Note in the plugin file:
Could not find a declaration file for module 'vue-notion'. '/Users/user/website/node_modules/vue-notion/dist/vue-notion.umd.cjs' implicitly has an 'any' type.
Try `npm i --save-dev @types/vue-notion` if it exists or add a new declaration (.d.ts) file containing `declare module 'vue-notion';`ts(7016)
module "/Users/user/website/node_modules/vue-notion/dist/vue-notion.umd"
Adding:
build: { transpile: ["vue-notion"], },
to the nuxt.config.ts fixes the issue.
I'm running into this error when I run "generate": "nuxt generate". "nuxt dev" works fine.
Nuxt 3.8.2 with Nitro 2.8.1
Using Nitro server preset: static
vite v4.5.0 building for production...