Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

小程序后台显示异常 Cannot read properties of null (reading \'node\') #51

Open
atjason opened this issue Sep 8, 2023 · 3 comments

Comments

@atjason
Copy link

atjason commented Sep 8, 2023

你好,在小程序 We 分析后台 > 性能 > JS 里,会发现有类似下面的异常:

Cannot read properties of null (reading 'node')
TypeError: Cannot read properties of null (reading 'node')
at Object. (https://components/mp-progress/progress.min.js:2:2030)
at https://lib/WASubContext.js:1:417693
at pe (https://lib/WASubContext.js:1:294190)
at de (https://lib/WASubContext.js:1:293933)
at https://lib/WASubContext.js:1:294858

progress.min.js:2:2030 代码段,大概是下面的位置:

i.select("#".concat(this._options.canvasId)).node(function(t){var e=t.node;

希望能排查下是什么原因,

@lucaszhu2zgf
Copy link
Owner

你好,在小程序 We 分析后台 > 性能 > JS 里,会发现有类似下面的异常:

Cannot read properties of null (reading 'node') TypeError: Cannot read properties of null (reading 'node') at Object. (https://components/mp-progress/progress.min.js:2:2030) at https://lib/WASubContext.js:1:417693 at pe (https://lib/WASubContext.js:1:294190) at de (https://lib/WASubContext.js:1:293933) at https://lib/WASubContext.js:1:294858

progress.min.js:2:2030 代码段,大概是下面的位置:

i.select("#".concat(this._options.canvasId)).node(function(t){var e=t.node;

希望能排查下是什么原因,

什么版本的基础库,有别的信息么

@atjason
Copy link
Author

atjason commented Sep 16, 2023

@lucaszhu2zgf 你好,我在 2030 的位置,加了 null 检查(if(!t) return;),暂时后台没有再报错了。

@lucaszhu2zgf
Copy link
Owner

@lucaszhu2zgf 你好,我在 2030 的位置,加了 null 检查(if(!t) return;),暂时后台没有再报错了。

好的,准备发2.0版本,我会补充这个逻辑 @atjason

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants