You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
gowago
changed the title
dymic import 动态导入 组件报错
dynamic-import-weapp haven been supported ! but if import url have variable compile will error
Apr 1, 2022
相关平台
微信小程序
小程序基础库: 2.23.1
使用框架: Vue 3
复现步骤
const path = ''examplecComponentsFileName' ;
const AsyncComp = defineAsyncComponent(() => import(
../../components/${path}.vue
));期望结果
动态 import 可以识别url 里面的变量
实际结果
小程序编译无法识别
环境信息
补充信息
vue3 异步加载组件 dymic import 里面 的url 变量 h5 可以编译成功但是小程序编译报错
编译警告 Critical dependency: the request of a dependency is an expression
The text was updated successfully, but these errors were encountered: