openstyles/stylus

popup: Unhandled error Cannot read properties of null (reading 'then')

已关闭

#2,090 创建于 2026年5月20日

 (9 条评论) (1 个反应) (0 位负责人)JavaScript (303 个派生)batch import
bughelp wantednot reproducible

仓库指标

星标
 (4,893 个星标)
PR 合并指标
 (平均合并 7小时 40分钟) (30 天内合并 1 个 PR)

描述

TypeError: Cannot read properties of undefined (reading 'id')
    at initPopup (js/popup.js:1:9922)
    at init (js/popup.js:1:8514)
    at 8825 (js/popup.js:1:8844)
    at u (js/common.js:1:62715)
    at js/popup.js:1:19575
    at u.O (js/common.js:1:62982)
    at js/popup.js:1:19590
    at t (js/common.js:1:67111)
    at js/popup.js:1:133

TypeError: Cannot read properties of undefined (reading 'length')
    at Object.showStyles (js/popup.js:1:14078)
    at init (js/popup.js:1:8529)
    at 8825 (js/popup.js:1:8844)
    at u (js/common.js:1:62715)
    at js/popup.js:1:19575
    at u.O (js/common.js:1:62982)
    at js/popup.js:1:19590
    at t (js/common.js:1:67111)
    at js/popup.js:1:133

TypeError: Cannot read properties of null (reading 'then')
    at initPort (js/common.js:1:45976)
    at exec (js/common.js:1:45620)
    at Object.invokeAPI [as apply] (js/common.js:1:43931)
    at getStyles (js/common.js:1:18350)
    at applyStyles (js/common.js:1:18063)
    at init (js/common.js:1:17831)
    at 9073 (js/common.js:1:17578)
    at u (js/common.js:1:62715)
    at 8825 (js/popup.js:1:8213)
    at u (js/common.js:1:62715)
  • OS: Windows 10
  • Browser: Chrome 148
  • Stylus: 2.3.24 (MV3)

贡献者指南