Automattic / Automattic/jetpack

Block Editor: TypeError: Cannot read properties of undefined (reading 'domReady')

Open
#38,110 4 comments 0 reactions 0 assignees View on GitHub
[Feature] Subscriptions [Focus] Blocks [Plugin] Jetpack [Pri] Low [Status] Needs Author Reply [Status] Priority Review Triggered Bug Triaged
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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.