掌柜的
掌柜的
  • 发布:2020-08-30 18:40
  • 更新:2024-05-14 14:01
  • 阅读:1051

typescript写的小程序再打包app报错

分类:uni-app

报错如下
reportJSException >>>> exception function:createInstanceContext, exception:white screen cause create instanceContext failed,check js stack ->Uncaught TypeError: Cannot read property 'parentNode' of undefined

最后发现

入口
new Vue({
store,
render: (h) => h(App)
}).$mount('#app')

改为
new Vue({
store,
render: (h) => h(App)
}).$mount()

就好了

0 关注 分享

要回复文章请先登录注册

1***@139.com

1***@139.com

哥们你太帅了 就这个破问题我搜了一大圈, 各种注释各种找问题. 幸亏有你, 一下就解决了
2024-05-14 14:01