-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
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
dayjs does not provide an export named 'default' #4320
Comments
Might be fixed by #4285 (it's been merged, so should appear in the next NPM release). |
Please check https://www.npmjs.com/package/mermaid/v/10.2.0-rc.2 |
10.3.0 still having this error Edit: Maybe its more nuxt related issue in my case. add to nuxt.config.ts of your highest layer (not the base)
more info at nuxt/nuxt#19426 |
I have the same issue. It seems the root cause is usign pnpm as a manager. If I install package through npm then all is good. Can we somehow unblock using pnpm installer? |
10.6.1 still having this error |
Very thanks for your answer! It's useful! |
Currently, the latest version ( The above temporary fix works. This shouldn't be a big deal, but hopefully a fix will be provided soon for vite. |
I fixed it, I can't just use element-plus or dayjs-nuxt model, you need install dayjs too, pnpm install dayjs and fix. |
import * as dayjs from 'dayjs' or config tsconfig.json support {
"compilerOptions": {
"esModuleInterop": true,
"allowSyntheticDefaultImports": true,
}
} Reference: https://segmentfault.com/q/1010000041973708 |
Description
When I'm using
mermaid
I getdayjs does not provide an export named 'default'
errorSteps to reproduce
https://github.com/azat-io/mermaid-dayjs-bug
pnpm install
pnpm start
Screenshots
No response
Code Sample
No response
Setup
Additional Context
azat-io/vuepress-plugin-mermaid-wrapper#1
The text was updated successfully, but these errors were encountered: