diff --git a/docusaurus/docs/custom-templates.md b/docusaurus/docs/custom-templates.md index de7906a5b9f..8daa9df4064 100644 --- a/docusaurus/docs/custom-templates.md +++ b/docusaurus/docs/custom-templates.md @@ -44,6 +44,14 @@ cra-template-[template-name]/ index.js (or index.tsx) ``` +Ensure that `package.json` declares its main entry point to `template.json`. On the other hand, the template won't work. + +```json +{ + "main": "template.json' +} +``` + ### Testing a template To test a template locally, pass the file path to the directory of your template source using the `file:` prefix.