nuxt / nuxt

The Intuitive Vue Framework.
https://nuxt.com
MIT License
54.27k stars 4.96k forks source link

The requested module '/_nuxt/node_modules/dayjs/plugin/advancedFormat.js?v=8de3ae9d' does not provide an export named 'default' #29087

Open yangyixuan opened 1 week ago

yangyixuan commented 1 week ago

Environment

01 02

Reproduction

The requested module '/_nuxt/node_modules/dayjs/plugin/advancedFormat.js?v=8de3ae9d' does not provide an export named 'default'

Describe the bug

安装最新版本后,出现此问题。附有最简代码包。

nuxt-antv.zip

Additional context

No response

Logs

No response

sunzw5236 commented 6 days ago

We also encountered this problem and look forward to solving it

luc122c commented 6 days ago

Related #29024

tawen commented 5 days ago

I have this problem too.

a524313390 commented 4 days ago

alias: { 'dayjs': 'dayjs/esm/' }, 在 nuxt.config.ts 配置中加入这行代码,就可以了,或者降到3.13.1版本

typed-sigterm commented 4 days ago

alias: { 'dayjs': 'dayjs/esm/' }, 在 nuxt.config.ts 配置中加入这行代码,就可以了,或者降到3.13.1版本

Incorrect 这样处理只对 dayjs 有效,但这个 bug 影响到的不止 dayjs

sunzw5236 commented 3 days ago

nuxt 中使用 '@ant-design-vue/nuxt' 降到3.13.1版本 打包后会报错!!! 我现在用plugins\ant-design-vue.ts

// plugins/ant-design-vue.ts import Antd from 'ant-design-vue'; export default defineNuxtPlugin((nuxtApp) => { nuxtApp.vueApp.use(Antd); });

web-nuxt\nuxt.config.ts

export default defineNuxtConfig({ plugins: ['~/plugins/ant-design-vue']

这样是没问题的!打包也没问题 ,即使使用nuxt 3.13.2

"nuxt": "^3.13.2",
"ant-design-vue": "^4.2.5",
typed-sigterm commented 1 day ago

Fixed by #29036