引入就报错了,web 端页面无法显示
![oxxx](https://img-cdn-tc.dcloud.net.cn/account/identicon/fa2d263c8dfab147480ee50304181500.png)
- 发布:2024-11-12 17:03
- 更新:2024-11-12 17:03
- 阅读:77
产品分类: uniapp/H5
PC开发环境操作系统: Mac
PC开发环境操作系统版本号: Sequoia 15.1 (24B83)
HBuilderX类型: 正式
HBuilderX版本号: 4.29
浏览器平台: Chrome
浏览器版本: 130.0.6723.117(正式版本) (arm64)
项目创建方式: HBuilderX
操作步骤:
预期结果:
能正常编译
能正常编译
实际结果:
页面报错无法显示
页面报错无法显示
bug描述:
Uncaught SyntaxError: The requested module '/uni_modules/x-modal-s/utssdk/interface.uts?import' does not provide an export named 'X_MODAL_TYPE' (at index.uts:1:10)
web 端下 index.uts 有导出类型,但是在浏览器端对应的文件缺失
这是最小示例 demo
https://gitcode.com/heianxiyi01/utsDemo/overview
export { X_MODAL_TYPE, X_MODAL_TYPE_PRIVATE } from "../interface.uts"
![](http://img-cdn-tc.dcloud.net.cn/uploads/questions/20241112/a42a3499904cbc29eeb324c009d3b787.png)