Stipple.jl: TypeError: window.Dashboard.revive_payload is not a function

First, thank you for the awesome package.

I suspect that this PR is breaking for all Stipple apps running on previous versions in ENV=PROD.

The reason is that our mini app has stopped working after the release with the following error:

app/:228 TypeError: window.Dashboard.revive_payload is not a function
    at window.parse_payload (app/:386:22)
    at app/:213:14
    at WebSocket.<anonymous> (app/:157:11)

The local version that uses corresponding JS helper files works fine. The PROD version that grabs scripts from GenieFramework CDN throws the above error in the browser console.

Is there a way to add an alias to be backwards compatible? It’s a minor version release, so I wouldn’t expect it to be breaking.

About this issue

  • Original URL
  • State: closed
  • Created 7 months ago
  • Comments: 28 (28 by maintainers)

Most upvoted comments

@hhaensel thank you very much for the fix! ♥️

@svilupp I’ve fixed the issue and brought back revive_payload() in watchers.js. Thanks for reporting.

@essenciary We should consider the above changes for the next minor Stipple release …

Oh, I begin to understand. @essenciary is probably right that the CDN version and the Stipple version don’t fit. Then Stipple’s watchers.js has changed. @essenciary I was never involved in releasing CDN versions of the assets. How is that done?