Automattic / Automattic/es-backbone
Uncaught TypeError: Cannot read property 'query' of undefined
Open
- Dominant language
- JavaScript
- Stars
- 103
- Forks
- 19
- PR merge metrics
- No merged PRs in 30d
Description
When I clone the project and visit the examples/simple/simple.php there is an immediate exception which stops all JS processing.
Uncaught TypeError: Cannot read property 'query' of undefined simple-view.js:42
Backbone.View.extend.initialize simple-view.js:42
a.View backbone-min.js:1
r backbone-min.js:1
(anonymous function) simple.php:82
f.Callbacks.o jquery.min.js:2
f.Callbacks.p.fireWith jquery.min.js:2
e.extend.ready jquery.min.js:2
c.addEventListener.B jquery.min.js:2
Am I missing something?
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reproducing the exception from examples/simple/simple.php and inspect the failing initialization at simple-view.js:42. Trace the undefined value involved in the .query access and confirm the example completes its JavaScript processing without the reported TypeError.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100