Open yangyixuan opened 1 month ago
We also encountered this problem and look forward to solving it
Related #29024
I have this problem too.
alias: { 'dayjs': 'dayjs/esm/' },
在 nuxt.config.ts 配置中加入这行代码,就可以了,或者降到3.13.1版本
alias: { 'dayjs': 'dayjs/esm/' },
在 nuxt.config.ts 配置中加入这行代码,就可以了,或者降到3.13.1版本
Incorrect 这样处理只对 dayjs 有效,但这个 bug 影响到的不止 dayjs
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",
Fixed by #29036
Environment
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