name export commafy not found
Kaynec opened this issue · 0 comments
Kaynec commented
i get this error on ssr-dev command
Named export 'commafy' not found. The requested module 'commafy-anything' 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 'commafy-anything';
const { commafy } = pkg;
at ModuleJob._instantiate (node:internal/modules/esm/module_job:123:21)
at async ModuleJob.run (node:internal/modules/esm/module_job:189:5)
at async Promise.all (index 0)
at async ESMLoader.import (node:internal/modules/esm/loader:527:24)
at async nodeImport (file:///D:/CODE/vitesse-quasar-nhost-template-main/node_modules/vite/dist/node/chunks/dep-68d1a114.js:56097:17)
at async ssrImport (file:///D:/CODE/vitesse-quasar-nhost-template-main/node_modules/vite/dist/node/chunks/dep-68d1a114.js:55990:24)
at async eval (D:/CODE/vitesse-quasar-nhost-template-main/src/modules/form.ts:3:44)
at async instantiateModule (file:///D:/CODE/vitesse-quasar-nhost-template-main/node_modules/vite/dist/node/chunks/dep-68d1a114.js:56052:9
Click outside, press Esc key, or fix the code to dismiss.
You can also disable this overlay by setting server.hmr.overlay to false in vite.config.js.
i followed the steps carefully not idea why this is occurring