antfu-collective / vite-ssg

Static site generation for Vue 3 on Vite

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SyntaxError: Named export 'createDrauu' not found.

zaidabukhalaf opened this issue · comments

When i am trying to run pnpm build ... this error happens

(node:14543) UnhandledPromiseRejectionWarning: file:///home/zaid/Desktop/projects/jetorder-storeowner-dashboard/node_modules/.pnpm/@vueuse+integrations@7.7.1_950076d39d79959398012cadd511804c/node_modules/@vueuse/integrations/index.mjs:5
import { createDrauu } from 'drauu';
         ^^^^^^^^^^^
SyntaxError: Named export 'createDrauu' not found. The requested module 'drauu' is a CommonJS module, which may not support all module.exports as named exports.
CommonJS modules can always be imported via the default export, for example using:

import pkg from 'drauu';
const { createDrauu } = pkg;

I don't know what is this

Install latest defu version, the version you are on probably only supports commonjs and is not compatible with nuxt 3..