lucky-zouzou

Results 4 comments of lucky-zouzou

这个看起来不像是跨域,会不会是你的webpack版本比较新,我今天遇到了类似的报错,把子应用里config.js里的jsonpFunction改成chunkLoadingGlobal

请问作者解决了吗?我的项目没有装vite-plugin-theme,线上环境也出现一样的报错,找不到原因 T T

这个问题已解决,是由于线上环境找不到资源报的错,需要在子项目的config中添加配置: export const viteConfig = defineConfig(({ command, mode }) => ({ ... // 嵌套公共路径部署,路径重写 base: mode === 'development' ? './' : '对应环境的地址', ...... }));

Me too! ! I use the latest beta in Vue3 Project, the same error occurs. But version 3.24.7 is OK!