Skip to content
BlinkpageBlinkpageDocs

Troubleshooting

Fix common problems with custom components, publishing, personal access tokens, and the MCP server, step by step.

On this page

Find the problem that matches what you see, then follow the steps. If nothing here helps, contact support.

#Fix a custom component that does not render

A component that fails to load shows a load failed tag in the block library. A component that loads but crashes shows no content or an error on the page.

  1. Read the reason

    In the left sidebar, open the Blocks tab and click Custom. Hover over the component marked load failed to read the reason.

  2. Check the class

    Make sure the class extends Component from the Blinkpage package, not from React. Make sure the constructor calls super(props, styles) and the class is the default export.

  3. Replace any link component from the editor with a plain a element, for example <a href="https://example.com">. A component that imports the editor's link component crashes.

  4. Upload a new version

    Fix the code, then upload the component again with a higher version. See Custom components.

#Fix a component that breaks publishing

Publishing renders your component on a server, where window and document do not exist. Code that reads them while the component renders makes the publish fail.

  1. Find the code

    Search your component for window, document, localStorage, and navigator.

  2. Move it out of render

    Move that code into the onComponentDidMount method of your component. Code in that method runs only in the visitor's browser.

  3. Check the constructor

    Make sure the constructor does not read window or document either.

  4. Upload and publish again

    Upload the fixed component with a higher version, add it to the page, and publish again.

#Fix an empty Content tab for a custom component

The Content tab shows one field for each prop the component declares. A component with no declared props has an empty Content tab.

  1. Check the constructor

    Make sure the constructor calls this.addProp for each value that people should edit. See Component props reference.

  2. Include props in MCP uploads

    If you upload with the MCP server, ask your assistant to send the prop definitions as props_schema with the upload.

  3. Upload a new version

    Upload the component again with a higher version.

  4. Add the new version

    Add the new version from the Custom category of the block library, and remove the old block from the page.

#Fix MCP connection errors

If the server cannot start, your client shows the server as failed or lists no Blinkpage tools. The server writes its messages to the client's MCP log.

  1. Check the two values

    Open your client config. Make sure the env block holds both BLINKPAGE_TOKEN and BLINKPAGE_API_URL. If either is missing, the server logs one error and exits.

  2. Copy the address again

    Copy the BLINKPAGE_API_URL value from Blinkpage MCP. Remove any trailing slash or version ending that you added.

  3. Check Node.js

    Run node --version. The server needs Node.js 18 or later.

  4. Turn on detailed logs

    Add BLINKPAGE_LOG_LEVEL with the value debug to the env block, then read the MCP log in your client.

  5. Restart your client

    Quit your client completely and open it again. The server reads its settings only when it starts.

#Fix a token that stops working

Blinkpage rejects a token that has expired or been revoked.

  1. Check the status

    Click the profile icon, click Account, and expand Advanced. Find your token and read its status: Active, Revoked, or Expired.

  2. Create a new token

    If the status is Revoked or Expired, click Create New Token and copy the new value.

  3. Update your client

    Replace the BLINKPAGE_TOKEN value in your client config with the new token.

  4. Restart your client

    Quit your client completely and open it again.

#Get help

If the steps above do not fix the problem, contact the Blinkpage support team (opens in a new tab). Include the page name, the component name and version, and what you expected to happen. Never include a token.

#Next steps

Edit this page(opens in a new tab)