SyntaxError: Named export 'createDrauu' not found.
zaidabukhalaf opened this issue · comments
Zaid Ak commented
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
Sammi Sinno commented
Install latest defu version, the version you are on probably only supports commonjs and is not compatible with nuxt 3..