Skip to content

Troubleshoot visual editor setup

Get help setting up the visual editor for your site.

If your site relies on a framework or setup that uses SSG (or Static site generator) architecture, then you will need to configure the visual editor for SSG.

For example, you may need to include the ssgName or ssg property in your visual editing configuration file.

Many setup errors can happen if the visual editor configuration file is misconfigured or missing.

The visual editor requires a properly configured stackbit.config.ts that tells the visual editor how to understand the content structure of your site and where to find its content files.

For examples of working configuration files, check out the stackbit.config.ts file of these template site repositories:

Site repositoryContent sourceOptimized for
TypeScript + MUI StarterGit CMS- a tutorial-like experience

- learning about visual editor capabilities
ContentOps StarterGit CMS- learning about content types with over 35 content types

- try more complex content type scenarios
Auto-annotated portfolioGit CMS- learning about auto annotating your site

- lots of auto annotated components
Next.js & Contentful StarterHeadless CMS: Contentfulgetting started with Contentful
Astro & Sanity StarterHeadless CMS: Sanitygetting started with Sanity

You may find various errors when you try to install the GitHub App for the Netlify visual editor.

To troubleshoot these, we recommend the following:

  • Go to your GitHub App settings to check if the GitHub App for the Netlify visual editor is already installed and for which GitHub account. Noting that you may have installed the app for a different GitHub account than the one where the site repo is installed. To learn more, check out the managing app permissions GitHub docs.

If your BitBucket access key is failing, we recommend confirming you’re using the right access key. To learn more, check out the BitBucket access key docs.

If you find the visual editor works locally but on Netlify, check that your local updates to the visual editor configuration file (stackbit.config.ts) are also merged to your remote site repository.

For example, if your site map works locally but on Netlify you have a missing site map error, then confirm that your local updates are on the configured working branch for the visual editor. So if your working branch is set to preview on Netlify, confirm that these changes have been pushed to your remote repository.

To check your remote working branch on Netlify:

  1. For a site on Netlify, go to Project configuration Visual editor Preview settings.

Your site’s framework may require additional configuration for the visual editor to work. To learn more, check out the visual editing framework docs or check out the configuration file (stackbit.config.ts) of some template site repositories.

Learn more about what your framework may require to set up the visual editing.