Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

name export commafy not found #217

Open
Kaynec opened this issue Dec 14, 2023 · 0 comments
Open

name export commafy not found #217

Kaynec opened this issue Dec 14, 2023 · 0 comments

Comments

@Kaynec
Copy link

Kaynec commented Dec 14, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant