structurizr / lite

Structurizr Lite
https://docs.structurizr.com/lite
MIT License
232 stars 28 forks source link

Type Error: structurizr.workspace.getName is not a function #29

Closed aizzi closed 1 year ago

aizzi commented 1 year ago

Hello Simon,

issue #22 is back. This time I get the following error showed in Console:

`Type Error: structurizr.workspace.getName is not a function"

simonbrowndotje commented 1 year ago

Try a hard refresh in your web browser, or clearing your web browser's cache.

aizzi commented 1 year ago

I cleaned the cache, but nothing changed. When I load the page, I see the following warning/errors in the browser's console:

Warning

This page uses the non standard property “zoom”. Consider using calc() in the relevant property values, or using “transform” along with “transform-origin: 0 0”. decisions

Warning

Cookie “JSESSIONID” does not have a proper “SameSite” attribute value. Soon, cookies without the “SameSite” attribute or with an invalid value will be treated as “Lax”. This means that the cookie will no longer be sent in third-party contexts. If your application depends on this cookie being available in such contexts, please add the “SameSite=None“ attribute to it. To know more about the “SameSite“ attribute, read https://developer.mozilla.org/docs/Web/HTTP/Headers/Set-Cookie/SameSite decisions

Error:

TypeError: structurizr.workspace.getName is not a function
    renderNavigation http://localhost:8080/workspace/decisions:618
    renderNavigation http://localhost:8080/workspace/decisions:612
    workspaceLoaded http://localhost:8080/workspace/decisions:510
    loadWorkspace http://localhost:8080/workspace/decisions:62
    <anonymous> http://localhost:8080/workspace/decisions:1652
    getWorkspace http://localhost:8080/static/js/structurizr-client.js:52
    jQuery 6
    getWorkspace http://localhost:8080/static/js/structurizr-client.js:36
    <anonymous> http://localhost:8080/workspace/decisions:1642
decisions:67:21

I also tried with Edge, which I do not utilize usually, and I've got the same error.

simonbrowndotje commented 1 year ago

Thanks for the info ... should be fixed in build 2935.

(different problem to #22 ... this time related to switching to the open source version of the UI)

aizzi commented 1 year ago

It is indeed. Thank you.