[BUG] 引入小程序后出现了[渲染层错误]的报错并提示 Error: SystemError (webviewScriptError) {"isTrusted":true}

Open
#223 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
25/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
javascript
Domain
frontend

Research direction

Start by reproducing the issue in WeChat Developer Tools 1.06.2301160 with base library 2.30.2, using both WeUI and tdesign-miniprogram. No project file or test is named; done means identifying a minimal reproduction and determining whether the two component libraries cause the rendering-layer and HTTP 500 errors.

Written by the indexing model from the issue text.

Description

Bug描述

引入微信小程序后出现了报错现象

[渲染层错误] Uncaught (in promise) [object Event]
(env: macOS,mp,1.06.2301160; lib: 2.30.2)
[渲染层错误] Error: SystemError (webviewScriptError)
{"isTrusted":true}
at Function.errorReport (http://127.0.0.1:33444/__pageframe__/__dev__/WAWebview.jst=wechat&s=1678412763592&v=2.30.2:1:131669)
at Object.<anonymous> (http://127.0.0.1:33444/__pageframe__/__dev__/WAWebview.jst=wechat&s=1678412763592&v=2.30.2:1:134226)
at a (http://127.0.0.1:33444/__pageframe__/__dev__/WAWebview.js?t=wechat&s=1678412763592&v=2.30.2:1:2123745)
at Object.cb (http://127.0.0.1:33444/__pageframe__/__dev__/WAWebview.js?t=wechat&s=1678412763592&v=2.30.2:1:2167028)
at R._privEmit (http://127.0.0.1:33444/__pageframe__/__dev__/WAWebview.js?t=wechat&s=1678412763592&v=2.30.2:1:80476)
at R.emit (http://127.0.0.1:33444/__pageframe__/__dev__/WAWebview.js?t=wechat&s=1678412763592&v=2.30.2:1:80766)
at http://127.0.0.1:33444/__pageframe__/__dev__/WAWebview.js?t=wechat&s=1678412763592&v=2.30.2:1:81571
at Ee (http://127.0.0.1:33444/__pageframe__/__dev__/WAWebview.js?t=wechat&s=1678412763592&v=2.30.2:1:88073)
at http://127.0.0.1:33444/__pageframe__/__dev__/WAWebview.js?t=wechat&s=1678412763592&v=2.30.2:1:88565
at Ee (http://127.0.0.1:33444/__pageframe__/__dev__/WAWebview.js?t=wechat&s=1678412763592&v=2.30.2:1:88073)
Failed to load resource: the server responded with a status of 500 (Internal Server Error)
(env: macOS,mp,1.06.2301160; lib: 2.30.2)

以上这三种报错

复现方式

引入后就报错,目前小程序在使用weui的同时还引入了tdesign-miniprogram的UI组件库,尚不知tdesign-miniprogram的组件库会不会对weui产生影响

版本信息

  • 调式基础库:2.30.2
  • 微信开发者工具版本:1.06.2301160
Dominant language
TypeScript
Stars
2.4k
Forks
549
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from wechat-miniprogram/weui-miniprogram

All issues in wechat-miniprogram/weui-miniprogram

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.