openstyles/stylus

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

Closed

#2,090 opened on May 20, 2026

 (9 comments) (1 reaction) (0 assignees)JavaScript (303 forks)batch import
bughelp wantednot reproducible

Repository metrics

Stars
 (4,893 stars)
PR merge metrics
 (Avg merge 7h 40m) (1 merged PR in 30d)

Description

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)

Contributor guide