openstyles/stylus

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

Closed

#2090 opened on May 20, 2026

View on GitHub
 (9 comments) (1 reaction) (0 assignees)JavaScript (4,893 stars) (303 forks)batch import
bughelp wantednot reproducible

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