Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update from 4.1.0 to 4.3.0 breaks Relayout #430

Closed
DWIAltonaAnalytics opened this issue Jun 11, 2024 · 2 comments
Closed

update from 4.1.0 to 4.3.0 breaks Relayout #430

DWIAltonaAnalytics opened this issue Jun 11, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@DWIAltonaAnalytics
Copy link

code calls Plotly.Blazor.PlotlyChart.Relayout it worked before the update, but now we get this exception:

blazor.webassembly.js:1 crit: Microsoft.AspNetCore.Components.WebAssembly.Rendering.WebAssemblyRenderer[100]
      Unhandled exception rendering component: Could not find 'relayout' ('relayout' was undefined).
      Error: Could not find 'relayout' ('relayout' was undefined).
          at https://localhost/_framework/blazor.webassembly.js:1:368
          at Array.forEach (<anonymous>)
          at l.findFunction (https://localhost/_framework/blazor.webassembly.js:1:336)
          at w (https://localhost/_framework/blazor.webassembly.js:1:5079)
          at https://localhost/_framework/blazor.webassembly.js:1:2872
          at new Promise (<anonymous>)
          at b.beginInvokeJSFromDotNet (https://localhost/_framework/blazor.webassembly.js:1:2835)
          at Object.vn [as invokeJSJson] (https://localhost/_framework/blazor.webassembly.js:1:58849)
          at https://localhost/_framework/dotnet.runtime.8.0.6.cfhqwq2l7j.js:3:178364
          at Tl (https://localhost/_framework/dotnet.runtime.8.0.6.cfhqwq2l7j.js:3:179198)
Microsoft.JSInterop.JSException: Could not find 'relayout' ('relayout' was undefined).
Error: Could not find 'relayout' ('relayout' was undefined).
    at https://localhost/_framework/blazor.webassembly.js:1:368
    at Array.forEach (<anonymous>)
    at l.findFunction (https://localhost/_framework/blazor.webassembly.js:1:336)
    at w (https://localhost/_framework/blazor.webassembly.js:1:5079)
    at https://localhost/_framework/blazor.webassembly.js:1:2872
    at new Promise (<anonymous>)
    at b.beginInvokeJSFromDotNet (https://localhost/_framework/blazor.webassembly.js:1:2835)
    at Object.vn [as invokeJSJson] (https://localhost/_framework/blazor.webassembly.js:1:58849)
    at https://localhost/_framework/dotnet.runtime.8.0.6.cfhqwq2l7j.js:3:178364
    at Tl (https://localhost/_framework/dotnet.runtime.8.0.6.cfhqwq2l7j.js:3:179198)
   at Microsoft.JSInterop.JSObjectReferenceExtensions.InvokeVoidAsync(IJSObjectReference jsObjectReference, String identifier, CancellationToken cancellationToken, Object[] args)
   at Plotly.Blazor.PlotlyJsInterop.Relayout(CancellationToken cancellationToken)
   at Plotly.Blazor.PlotlyChart.Relayout(CancellationToken cancellationToken)
…

exception shortened to remove sensitive code references

what do we have to change?

the version update indicated a non breaking change, I inherited the code, so I am happy for any help :)

@sean-mcl
Copy link
Collaborator

Will check it out next week. :)

@sean-mcl sean-mcl added the bug Something isn't working label Jun 13, 2024
@sean-mcl
Copy link
Collaborator

Should be fixed by #432

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants