Have your say in Community Polls: What was/is your greatest motivation to start your own business?
Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

URGENT is App Bridge down? Uncaught TypeError: createApp is not a function

Solved

URGENT is App Bridge down? Uncaught TypeError: createApp is not a function

policenauts1
Trailblazer
174 13 40

I have two apps that have been working fine (including this morning) and a customer just emailed me with this error. I'm importing App Bridge via CDN. Please advise!

 

      <script src="https://unpkg.com/@shopify/app-bridge"></script>
          var AppBridge = window['app-bridge'];
          var createApp = AppBridge.default;

      var app = createApp({
          apiKey: apiKey,
          shopOrigin: shopOrigin
        });
      
Accepted Solution (1)

hannachen
Shopify Staff
54 8 17

This is an accepted solution.

Hi @policenauts1 thank you for flagging this! The team did push up a change this afternoon, looking into it now! In the mean time, you might be able to resolve this by locking down the version of App Bridge by appending the version like so:

https://unpkg.com/@shopify/app-bridge@1.25.0

 

Hanna | Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit the Shopify Help Center or the Shopify Blog

View solution in original post

Replies 4 (4)

hannachen
Shopify Staff
54 8 17

This is an accepted solution.

Hi @policenauts1 thank you for flagging this! The team did push up a change this afternoon, looking into it now! In the mean time, you might be able to resolve this by locking down the version of App Bridge by appending the version like so:

https://unpkg.com/@shopify/app-bridge@1.25.0

 

Hanna | Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit the Shopify Help Center or the Shopify Blog

policenauts1
Trailblazer
174 13 40

Thank you @hannachen for the quick response, hard-coding the library to that version seems to have solved it. 

hannachen
Shopify Staff
54 8 17

Thanks for checking and confirming. There was indeed an issue with the latest release, and we're fixing forward now 🙇🏻‍♂️

Hanna | Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit the Shopify Help Center or the Shopify Blog

iain-campbell
Shopify Staff (Retired)
54 9 23

Version 1.26.2 has shipped with a fix for this issue.

To learn more visit the Shopify Help Center or the Community Blog.