Open Shamim-Aktar opened 4 years ago
Hi @Shamim-Aktar
Have you tried the BLOCK_DIR=\absolute\path\to\your-custom-block npm start
command (using the correct absolute path to your block)?
No I am not getting where is it? Please tell me where I can use this please tell me filename after using this facing issue BLOCK_DIR is not recognized as internal or external command
You can get that instruction in readme file:
You can include your custom block by passing its path in BLOCK_DIR env var.
BLOCK_DIR=\absolute\path\to\your-custom-block npm start
BLOCK_DIR=\absolute\path\to\your-custom-block npm start I include this but still not able to see My Custom block in guttenberg editor after successfull run of server
From the beginning:
You can install g-editor and run it executing the following commands in your command line:
npm install @frontkom/g-editor
npm start
If you want to add your custom block to the editor, you have to set the BLOCK_DIR environment variable with the path of the root of your custom block before you start g-editor.
Make sure your block has the following files structure:
your-custom-block
├── ...
├── build
│ ├── index.js
│ └── style.css
└── ...
If your custom block lives at /Users/your-user/Workspace/your-custom-block
directory, use the following command to start the editor:
BLOCK_DIR=/Users/your-user/Workspace/your-custom-block npm start
In Windows:
set BLOCK_DIR=/Users/your-user/Workspace/your-custom-block
npm start
Hope this helps you.
I followed your instruction application is running but Block is not showing on guttenberg editor
Hi SofiaSousa
I run your code successfully But I am not able to see my custom block in guttenberg editor. Help me and guide me the step to get my output after npm start.