• Hello everyone. I’m trying to develop a Gutenberg block using wp-env for local development. However, I can’t find my custom block when trying to add it to the page. I ran wp-env directly from plugin directory and plugin activation is success.

Viewing 3 replies - 1 through 3 (of 3 total)
  • If you activate plugin on a normal WordPress, does your custom block shows? I am asking this to identify, if this is a problem related to wp-env or directly to your code?

    Just for the reference:

    • This reply was modified 10 months, 3 weeks ago by Rok Megli?.
    Thread Starter brofromspace

    (@brofromspace)

    Yes, when I’m using my plugin with normal wordpress(running with docker or Local) it shows my custom block and I can use it. When running with wp-env the plugin could be activated and deactivated, however, the block doesn’t come up.

    OK; so your code works. We have eliminated that. Now we need to see is it your code that does not work under wp-env or is it a bug with wp-env. Would it be possible that you would try any other custom block with your wp-env, or maybe try as simple as possible custom block, so you could see if it works under wp-env.

    If another / simple custom block shows up under wp-env, then it’s easy. You just need to figure out which part of the code does not work with wp-env, fix/modify it and you are good to go.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘wp-env issue’ is closed to new replies.