elsa-workflows / elsa-workflows/elsa-studio
Frequent JSExceptions introduced in 3.7.0
- Dominant language
- C#
- Stars
- 301
- Forks
- 181
- Avg merge
- 17h 12m
- Merged PRs (30d)
- 42
Description
# Description
Since we applied the latest upgrade 3.7.0 on Elsa Studio, we are experiencing the following exceptions frequently.
When clicking on activities in the workflow definition editor:
```
JSException: Couldn't find the editor with id: monaco-editor-b69def8425a14806af157fe7d0f9c432 editors.length: 2
```
Opening the workflow instances page throws:
```
JSException: Could not find 'mudBeforeInput.attach' ('mudBeforeInput' was undefined). Error: Could not find 'mudBeforeInput.attach' ('mudBeforeInput' was undefined). at E
(http://localhost:7000/_framework/blazor.server.js:1:6738) at h.resolveInvocationHandler
(http://localhost:7000/_framework/blazor.server.js:1:369) at S
(http://localhost:7000/_framework/blazor.server.js:1:6437) at w.processJSCall
(http://localhost:7000/_framework/blazor.server.js:1:4430) at w.beginInvokeJSFromDotNet
(http://localhost:7000/_framework/blazor.server.js:1:4115) at Xt._invokeClientMethod
(http://localhost:7000/_framework/blazor.server.js:1:67062) at Xt._processIncomingData
(http://localhost:7000/_framework/blazor.server.js:1:64427) at sn.onreceive
(http://localhost:7000/_framework/blazor.server.js:1:58078) at WebSocket.
(http://localhost:7000/_framework/blazor.server.js:1:82136)\
```
# Details
.NET version: 10
Browser: occurs in Edge, it does not seem to be present in Chrome
Contributor guide
Research direction
Reproduce the failures in Edge by clicking activities in the workflow definition editor and opening the workflow instances page; compare with Chrome. Start from the reported monaco-editor and mudBeforeInput JS interop errors in blazor.server.js, then trace the related Elsa Studio behavior. Done means both pages open and operate without these JSExceptions.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp, javascript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100