-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Do custom blocks not get added to the block-renderer/ api endpoint by default? #12057
Comments
Subscribing to this. All of our blocks since WP 5.0.3 (that were using ServerSideRender) stopped working as the API is not registered. On a side note, it gets a bit boring when you hear in August 2018 that there are no major changes to Gutenberg, join the boat, try to help the community just to hit the wall hard when the editor breaks backwards compatibility literally monthly 👎 #feelingLikeJoomla |
I keep getting: |
@mrpritchett, I tried researching this and the most recent pull request I could find about block registration with regard to the API is in #13693 which appears to be the first step towards making all core, and optionally plugin, blocks discoverable on the server. I am new to JavaScript and block development. I think 13693 might be the most relevant because when I read the RFC I noticed two bullet points in the proposal which look like they might be relevant to your question:
The "References" and "Previous attempts" sections in the RFC talk about previous explorations and those also look interesting. May I ask whether the information in #13693 answers your question? |
Sorry, lost track of my own issue. For our team, the issue was where our custom webpack setup was enqueueing the files and partially where they were being compiled (at runtime). We played with settings and config and eventually got it to work just fine. |
Adding a note here because I came here via Google trying to figure out why I was getting a The reason for me was that |
The issue I was having seemed to be fixed with WP 5.1, so now the dynamic blocks are working again. |
The issue is still producing with wp-v5.3.x. I have mentioned detail code here ... https://stackoverflow.com/questions/59018433/serversiderender-components-producing-error-loading-block-no-route-was-found-m Please add a detail note here so that many of us can read when google send us ... Thanks. |
This ended up being a problem with where our custom blocks were hooked into, not an actual WP issue itself. |
Thank you for the reply, I hope it is not an issue of WP itself now. My block hook is in the right place and still seeing the error! |
saved my day! |
I'm trying to use ServerSideRender and hitting an issue where non of our custom blocks are being registered on the API endpoint for block-renderer/.
The text was updated successfully, but these errors were encountered: