Skip to content

Blocks not showing up in Wordpress editor #1880

@jaredcbaum

Description

@jaredcbaum

Description

I took your blocks example and hooked it up to my site, but I'm unable to see blocks show up in the Gutenberg editor after running faust blockset. I am hosting on Kinsta and running PHP Version 8.2 and Wordpress Version 6.5.2

Steps to reproduce

npx create-next-app \
-e https://github.com/wpengine/faustjs/tree/canary \
--example-path examples/next/block-support \
--use-npm
  1. cd into repo
  2. npm i and add environment variables hooking up site to Faustjs

Additional context

Plugins installed

WPGraphQL Version 1.23.0
WPGraphQL for ACF Version 2.2.0
Advanced Custom Fields Version 6.2.9
Faust.js™ Version 1.2.3

@faustwp/core Version

3.0.1

@faustwp/cli Version

3.0.1

FaustWP Plugin Version

1.2.3

WordPress Version

6.5.2

Additional environment details

Output of npm run blockset command:

npm info using npm@10.2.4
npm info using node@v20.11.1
npm verb title npm exec wp-scripts start --no-watch --webpack-src-dir=wp-blocks --output-path=/Users/myusername/Documents/Repos/block-support/.faust/build
npm verb argv "exec" "wp-scripts" "start" "--package" "@wordpress/scripts" "--loglevel" "verbose" "--" "--no-watch" "--webpack-src-dir=wp-blocks" "--output-path=/Users/myusername/Documents/Repos/block-support/.faust/build"
npm verb logfile logs-max:10 dir:/Users/myusername/.npm/_logs/2024-04-19T16_21_01_049Z-
npm verb logfile /Users/myusername/.npm/_logs/2024-04-19T16_21_01_049Z-debug-0.log
assets by path block-a/ 18.5 KiB
  assets by chunk 17 KiB (name: block-a/index)
    asset block-a/index.js 15.9 KiB [emitted] (name: block-a/index) 1 related asset
    asset block-a/index.css 993 bytes [emitted] (name: block-a/index) 1 related asset
    asset block-a/index.asset.php 134 bytes [emitted] (name: block-a/index)
  asset block-a/style-index.css 1.03 KiB [emitted] (name: block-a/style-index) (id hint: style) 1 related asset
  asset block-a/block.json 453 bytes [emitted] [from: wp-blocks/block-a/block.json] [copied]
assets by path block-b/ 189 KiB
  assets by chunk 187 KiB (name: block-b/index)
    asset block-b/index.js 187 KiB [emitted] (name: block-b/index) 1 related asset
    asset block-b/index.asset.php 152 bytes [emitted] (name: block-b/index)
  asset block-b/style-index.css 1.06 KiB [emitted] (name: block-b/style-index) (id hint: style) 1 related asset
  asset block-b/block.json 690 bytes [emitted] [from: wp-blocks/block-b/block.json] [copied]
Entrypoint block-a/index 18.1 KiB (12.4 KiB) = block-a/style-index.css 1.03 KiB block-a/index.css 993 bytes block-a/index.js 15.9 KiB block-a/index.asset.php 134 bytes 3 auxiliary assets
Entrypoint block-b/index 188 KiB (174 KiB) = block-b/style-index.css 1.06 KiB block-b/index.js 187 KiB block-b/index.asset.php 152 bytes 2 auxiliary assets
orphan modules 1.05 MiB (javascript) 937 bytes (runtime) [orphan] 266 modules
runtime modules 8.61 KiB 20 modules
built modules 133 KiB (javascript) 756 bytes (css/mini-extract) [built]
  modules by path ./node_modules/ 127 KiB
    modules by path ./node_modules/@faustwp/block-editor-utils/dist/mjs/ 14 KiB 19 modules
    modules by path ./node_modules/graphql/ 92.7 KiB 18 modules
    ./node_modules/graphql-tag/lib/index.js 4.28 KiB [built] [code generated]
    ./node_modules/tslib/tslib.es6.mjs 15.9 KiB [built] [code generated]
  modules by path ./wp-blocks/ 5.47 KiB (javascript) 756 bytes (css/mini-extract)
    modules by layer 5.47 KiB 10 modules
    css modules 756 bytes
      css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[4].use[1]!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[4].use[2]!./node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[4].use[3]!./wp-blocks/block-a/style.scss 262 bytes [built] [code generated]
      + 2 modules
  + 6 modules
webpack 5.91.0 compiled successfully in 714 ms

Please confirm that you have searched existing issues in the repo.

  • Yes

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

Status

✅ Closed

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions