-
Notifications
You must be signed in to change notification settings - Fork 47
Closed
Description
Explanation: Requires Gutenberg
Todo
- Find how to require a plugin in the header
Requires Plugins: gutenberg- Include the Gutenberg plugin as a requirement if necessary for these blocks
- Update plugin header for Interactivity API Countdown
- Update plugin headers documentation in the Plugin Handbook
Background
The Interactivity API won't work without the Gutenberg Plugin active. There's a new header that will throw an error in the dashboard for this (as of 6.5). Trying to get word on this header so it can be documented.
How was it discovered?
The Playground demo worked, so the code wasn't broken.
{
"step": "installPlugin",
"pluginZipFile": {
"resource": "wordpress.org/plugins",
"slug": "gutenberg"
}Error track
from console
Uncaught TypeError: Cannot read properties of undefined (reading 'startCountdown')
at interactivity.min.js?ver=6.5:2:25942
at Array.forEach (<anonymous>)
at interactivity.min.js?ver=6.5:2:25927
at interactivity.min.js?ver=6.5:2:25951
at interactivity.min.js?ver=6.5:2:29636
at Object.__ (interactivity.min.js?ver=6.5:2:27702)
at vt (interactivity.min.js?ver=6.5:2:13563)
at Array.forEach (<anonymous>)
at at (interactivity.min.js?ver=6.5:2:12275)Steps to reproduce
- Clone the repo
- Move blocks from
/pluginsto/wp-content/pluginsin your installation - Install packages
- Run build
- Insert interactive countdown block
- No countdown
Possible culprits
- 👋 Gutenberg not installed?
- 🚫 interactivity API dependencies in package-lock.json?
- 🚫 viewScript changes?
- ⁇ No data from datastore?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels