Automattic / Automattic/jetpack
Block Editor: TypeError: Cannot read properties of undefined (reading 'domReady')
- Dominant language
- PHP
- Stars
- 1.8k
- Forks
- 898
- Avg merge
- 1d 18h
- Merged PRs (30d)
- 774
Description
### Impacted plugin
Jetpack
### Quick summary
It seems, that u find solution here, but I cant find D111593-code.
https://github.com/Automattic/wp-calypso/issues/76936
Code with JS is located under the ``, but object of window.wp is undefined
### Steps to reproduce
Launch site with custom template.
### A clear and concise description of what you expected to happen.
_No response_
### What actually happened
_No response_
### Impact
One
### Available workarounds?
No but the platform is still usable
### Platform (Simple and/or Atomic)
_No response_
### Logs or notes
```
view.js?m=1716233624:1 Uncaught TypeError: Cannot read properties of undefined (reading 'domReady')
at 47701 (view.js?m=1716233624:1:1782)
at r (view.js?m=1716233624:1:1889)
at view.js?m=1716233624:1:2725
at view.js?m=1716233624:1:4129
at view.js?m=1716233624:1:4133
```
Contributor guide
Research direction
Reproduce the error on a site using a custom template and inspect the `view.js` stack where `window.wp` is undefined and `domReady` is read. Compare the behavior with the referenced Calypso issue 76936. Done means the Block Editor no longer throws this TypeError while the platform remains usable.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, php
- Domain
- frontend, web-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100