Skip to content
This repository has been archived by the owner on Feb 27, 2024. It is now read-only.

(Can be my local env) but documenting the issue #1019

Open
emilse-webdev opened this issue Jun 1, 2022 · 2 comments
Open

(Can be my local env) but documenting the issue #1019

emilse-webdev opened this issue Jun 1, 2022 · 2 comments

Comments

@emilse-webdev
Copy link

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.

image
image

Describe the bug
validateThemeColors is not a function react-dom.js called from blocks.js

To Reproduce
Steps to reproduce the behavior:

  1. Open a wordpress site root directory
  2. Clone the repo backend folder in wp-content/
  3. Composer install
  4. Move theme to themes folder
  5. Back to package.json folder, npm install --legacy-peer-deps && npm run dev
  6. 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)
@fiechtor
Copy link

fiechtor commented Jun 6, 2022

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.

@kaelansmith
Copy link

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?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants