在.vue文件中使用defineAsyncComponent引入组件,打包时会出现 WARN [plugin:vite:reporter] #15150
Replies: 3 comments
-
可能是打包后引用路径可能会有问题,可以尝试一下 { |
Beta Was this translation helpful? Give feedback.
-
这个问题,我也遇到过,然后测试一番之后发现,好像和 manualChunks 函数没有处理 无返回值的情况有关系,当我将设置了 manualChunks 返回值为输入的id的时候,虽然会报其他的错误,但是没有报 [plugin:vite:reporter] 这个错误了 |
Beta Was this translation helpful? Give feedback.
-
在vite文件夹里面的plugins.ts中找到Pages方法,修改成Pages({ |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Describe the bug
vite版本4.5,vue版本3.3
代码:
build命令出现问题:
如果不使用defineAsyncComponent引入组件就不会有这个警告,请问该如何解决?这个警告是否影响生成环境
Reproduction
Steps to reproduce
No response
System Info
*
Used Package Manager
npm
Logs
No response
Validations
Beta Was this translation helpful? Give feedback.
All reactions