nextjs-wordpress-starter icon indicating copy to clipboard operation
nextjs-wordpress-starter copied to clipboard

(Can be my local env) but documenting the issue

Open emilse-webdev opened this issue 3 years ago • 2 comments

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)

emilse-webdev avatar Jun 01 '22 22:06 emilse-webdev

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.

fiechtor avatar Jun 06 '22 17:06 fiechtor

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?

kaelansmith avatar Aug 23 '22 22:08 kaelansmith