This command executes your package.json file scripts. After running,
yarn starts command on in your terminal. Add the newly created module(You’ll find Hello World Module) on your divi page builder. After adding the module, You may face the following issue-
To fix this issue, Add the below-mentioned code in your
DiviExtensionTutorial.php file. You may locate this file
plugins/divi-extension-tutorial/includes folder. This code is for module development purposes. Don’t forget to remove this code while you create a zip file of your final Divi Module. Here, You may find more detail about this issue.
yarn start command running while developing the custom module. This will compile your module automatically when you make any changes in CSS, JS, or JSX file.
This command will create the build file of your custom module.
This command will create the zip file.
After finishing everything, run
yarn eject command.
In this video, you can see what we have done so far.
In the next tutorial, I’ll cover the module functions and setting fields. Leave a comment if you face any problem so far.