Migration from 0.55 to 0.8: the browser doesn't load anything #1406
-
Hello, I've upgraded my app from v0.55 to v0.88, after I start the app there is no any errors neither on the server side nor in the browser. However, the browser just doesn't load any thing, shows a blank page. This is how things look like on the server side:
And this is how the front end side looks like:
I had to replace Are you aware of any other changes that might be needed to make this work on perspective 0.8? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
As of window.addEventListener("DOMContentLoaded", async function () {
// ..
}); There is also another JS regression in your init callback I believe const metric_values_view_raw = websocket.open_view('data_source_metric_values_raw');
|
Beta Was this translation helpful? Give feedback.
-
Error messages are completely meaningless without a repro; as noted in the parent, please start with the non-erroring python examples, and open a new thread with your minimum-viable-repro of the issue (so others may index it). |
Beta Was this translation helpful? Give feedback.
As of
v0.7.0
, the"WebComponentsReady"
event no longer fires, as we no longer dist thewebcomponentsjs
polyfill. Instead use the browser-native "DOMContentLoaded" if you need to initialize perspective from a<script>
tag.There is also another JS regression in your init callback I believe
open_view()
was similarly removed, you should use useopen_table()
andtable.view()
on the remote table. If you need a big-picture guide to the latest API, the python example projects in the repo'sexamples/
dir are updated with these breaking …