nextjs-wordpress-starter
nextjs-wordpress-starter copied to clipboard
(Can be my local env) but documenting the issue
When I try to add pages or posts, after everything has been installed, I can add them but the blocks in gutenberg will give an error of react dom, validateThemeColors is not a function inside blocks.js.

Describe the bug validateThemeColors is not a function react-dom.js called from blocks.js
To Reproduce Steps to reproduce the behavior:
- Open a wordpress site root directory
- Clone the repo backend folder in wp-content/
- Composer install
- Move theme to themes folder
- Back to package.json folder, npm install --legacy-peer-deps && npm run dev
- Configure Algolia, Keys, Settings and open wp-admin/ create a page or post
Expected behavior The usual,
Additional Info I still have to test if installing the plugins in a wordpress clean installation won't remove the issue, because I think it's related to adding next js starter to an existent wordpress site.
Desktop (please complete the following information):
- OS: Windows
- Browser Chrome
- Version 101.0.4951.67 (Official Build) (64-bit)
Can confirm, Wordpress > 6.0 does not contain wp.blockEditor.validateThemeColors nor wp.blockEditor.validateThemeGradients, works fine in 5.9.3 though. Also works by removing the imports and making defaultColors and defaultGradients variables empty arrays.
Bug is contained in https://github.com/WebDevStudios/wds-headless-blocks plugin.
I just created a duplicate issue and then happened to see this right after. If this has been a critical issue since June 1st, I think it's safe to say this project has been abandoned?