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

dayjs error not provide an export named 'default' #44

Closed
bobby169 opened this issue Feb 26, 2024 · 1 comment
Closed

dayjs error not provide an export named 'default' #44

bobby169 opened this issue Feb 26, 2024 · 1 comment

Comments

@bobby169
Copy link

client.mjs:30 SyntaxError: The requested module '/_nuxt/node_modules/.pnpm/dayjs@1.11.10/node_modules/dayjs/plugin/advancedFormat.js?v=45ac0268' does not provide an export named 'default' (at dayjs.js?v=45ac0268:7:8)

The above error is reported, dayjs needs to set tsconfig.json

{ //tsconfig.json
  "compilerOptions": {
    "esModuleInterop": true,
    "allowSyntheticDefaultImports": true,
  }
}
@markthree
Copy link
Contributor

The same solution → nuxt/nuxt#26007 (comment)

@bobby169 bobby169 closed this as completed Mar 1, 2024
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

2 participants