'Getting started' Button extension doesn't work


I’m new to BitBucket development and am trying to get the basic ‘getting started’ samples to work - specifically the Button sample …


The project builds just fine. However when I try and navigate to the pull-request overview page - there’s a ‘This page couldn’t be displayed’ graphic in the page. Reviewing the Javascript console - I can see the following error message …

“Warning: Failed prop type: The prop onRender is marked as required in ExtensionModal, but its value is undefined.”

What’s wrong and how do I fix it ?


Hi @dave_ekhaus, welcome to the developer community. Are you using the example code from the template repository https://bitbucket.org/atlassianlabs/bitbucket-client-side-extensions-template?
Can you try cloning the repository again or pulling the latest changes?

From your message I can that you are using Modal extension type. If that’s correct you can check the documentation of how to add missing onRender attribute: https://developer.atlassian.com/server/framework/clientside-extensions/reference/api/extension-factories/modal/

Let me know if that helps.

Maciej Adamczak
Atlassian Developer