Examples for extending WordPress/Gutenberg with blocks.
1.2k
stars
316
forks
source link
"non-block-examples/09-code-data-basics-esnext" -> cannot run example: "Loading failed for the <script> with source “http://localhost:10033/wp-content/plugins/gtb-app/index.js?ver=2a64c5472c20f7b85e7a”." #251
I tried to follow along the example from https://developer.wordpress.org/block-editor/how-to-guides/data-basics/ using the plugin directory gtp-app. As I encountered the error described later, I replaced all files with the ones from GitHub and ran the build steps again with no success.
Used npm installnpm run start and everything seems to work fine:
Hi all,
I tried to follow along the example from https://developer.wordpress.org/block-editor/how-to-guides/data-basics/ using the plugin directory
gtp-app
. As I encountered the error described later, I replaced all files with the ones from GitHub and ran the build steps again with no success.Used
npm install
npm run start
and everything seems to work fine:The problem is that basically the
src/index.js
isn't loading and thus the components aren't shown.In the dev console, I get this error message:
Loading failed for the <script> with source “http://localhost:10033/wp-content/plugins/gtb-app/index.js?ver=2a64c5472c20f7b85e7a”.
The version string comes from
build/index.asset.php
:Not sure, but maybe the doc or the example (or my setup [or I ;-| ] need to be fixed?