xjkj1234
xjkj1234
  • 发布:2023-01-08 16:46
  • 更新:2023-09-13 01:57
  • 阅读:487

【报Bug】macOS M1芯片在Hbulid内置浏览器运行报错问题

分类:uni-app

产品分类: uniapp/H5

PC开发环境操作系统: Mac

PC开发环境操作系统版本号: Ventura 13.0

HBuilderX类型: 正式

HBuilderX版本号: 3.6.15

浏览器平台: Safari

浏览器版本: N/A

项目创建方式: HBuilderX

操作步骤:

预期结果:

实际结果:

bug描述:

macOS M1芯片
使用hbulid 在内置浏览器内运行报错 chrome 微信小程序 safari运行均无问题

16:42:04.441 You are running the esm-bundler build of vue-i18n. It is recommended to configure your bundler to explicitly replace feature flag globals with boolean literals to get proper tree-shaking in the final bundle.
16:42:04.661 App Launch at App.vue
16:42:04.687 App Show at App.vue
16:42:04.785 [Vue warn]: Unhandled error during execution of async component loader
at <AsyncComponentWrapper>
at <PageBody>
at <Page>
at <Anonymous>
at <KeepAlive>
at <RouterView>
at <Layout>
at <App>
16:42:04.803 SyntaxError: Unexpected token . at @fs/Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli-vite/node_modules/@dcloudio/uni-h5-vue/dist/vue.runtime.esm.js:1403

2023-01-08 16:46 负责人:无 分享
已邀请:
DCloud_HB_WDL

DCloud_HB_WDL

先排除项目原因吧。新建一个uni-app默认模板项目,运行到内置浏览器,是否正常?

  • xjkj1234 (作者)

    不正常的

    2023-01-14 19:58

  • DCloud_HB_WDL

    回复 xjkj1234: 无法复现,提供下QQ吧。我们联系您。

    2023-01-16 10:33

  • xjkj1234 (作者)

    回复 DCloud_HB_WDL: QQ:245776832 WX:xwk245776832 新年好 麻烦你们了

    2023-01-28 18:51

  • 2***@qq.com

    回复 DCloud_HB_WDL: 还是存在,请问怎么解决的?

    2023-03-17 16:30

  • DCloud_HB_WDL

    回复 2***@qq.com: 提供下操作系统、HBuilderX版本、项目信息

    2023-03-17 17:22

2***@qq.com

2***@qq.com

还是存在,请问怎么解决的?

h***@126.com

h***@126.com

你好,我在Mac(M1)开发H5应用时候也出现相同问题,请问你的问题解决了么?HBuilderX版本 3.8.7,Vue 3。

l***@163.com

l***@163.com

我也出现问题了,内置浏览器打不开,谷歌浏览器正常,
报错:
Uncaught SyntaxError: Unexpected token . index.js?t=1694540868113:2

index.js文件内容如下:

// 看到此报错,是因为没有配置vue.config.js的【transpileDependencies】,详见:https://www.uviewui.com/components/npmSetting.html#_5-cli模式额外配置
const pleaseSetTranspileDependencies = {}, babelTest = pleaseSetTranspileDependencies?.test

要回复问题请先登录注册