question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Exception when trying to create a new workflow definition

See original GitHub issue

Hi, i just pulled the latest feature/elsa-2.0 branch, because i wanted to see how things are going. Anyway when i want to create a new Workflow i can not do this because i always get this exception:

Microsoft.AspNetCore.Components.Server.Circuits.RemoteRenderer[100] Unhandled exception rendering component: Failed to fetch dynamically imported module: https://localhost:11000/_content/Elsa.Designer.Bindings.Blazor/elsa-workflows.js TypeError: Failed to fetch dynamically imported module: https://localhost:11000/_content/Elsa.Designer.Bindings.Blazor/elsa-workflows.js Microsoft.JSInterop.JSException: Failed to fetch dynamically imported module: https://localhost:11000/_content/Elsa.Designer.Bindings.Blazor/elsa-workflows.js TypeError: Failed to fetch dynamically imported module: https://localhost:11000/_content/Elsa.Designer.Bindings.Blazor/elsa-workflows.js at Microsoft.JSInterop.JSRuntime.InvokeAsync[TValue](Int64 targetInstanceId, String identifier, Object[] args) at Elsa.Designer.Bindings.Blazor.WorkflowEditor.OnAfterRenderAsync(Boolean firstRender) in C:\elsa\src\designer\bindings\blazor\Elsa.Designer.Bindings.Blazor\WorkflowEditor.razor:line 20 at Microsoft.AspNetCore.Components.RenderTree.Renderer.GetErrorHandledTask(Task taskToHandle) fail: Microsoft.AspNetCore.Components.Server.Circuits.CircuitHost[111] Unhandled exception in circuit 'Gv3sykq0zciAeXTGpJPI3NdARMdWWWPHWe9kkgjVm-A'. Microsoft.JSInterop.JSException: Failed to fetch dynamically imported module: https://localhost:11000/_content/Elsa.Designer.Bindings.Blazor/elsa-workflows.js TypeError: Failed to fetch dynamically imported module: https://localhost:11000/_content/Elsa.Designer.Bindings.Blazor/elsa-workflows.js at Microsoft.JSInterop.JSRuntime.InvokeAsync[TValue](Int64 targetInstanceId, String identifier, Object[] args) at Elsa.Designer.Bindings.Blazor.WorkflowEditor.OnAfterRenderAsync(Boolean firstRender) in C:\elsa\src\designer\bindings\blazor\Elsa.Designer.Bindings.Blazor\WorkflowEditor.razor:line 20 at Microsoft.AspNetCore.Components.RenderTree.Renderer.GetErrorHandledTask(Task taskToHandle)

I never come to the editor page because it always crashes before it can load. What can i do here?

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
tomy2105commented, Mar 22, 2021

This is what I did:

  1. Install node.js
  2. go to src\designer\elsa-workflows-studio
  3. run npm ci (or npm install)
  4. run npm run-script build:prod
  5. If step 4 gives you some weird errors about stencil not being recognized try doing “npm install @stencil/core@latest --save-exact” and repeating step 3 and 4
  6. go to src\designer\bindings\blazor\Elsa.Designer.Bindings.Blazor
  7. run npm ci (or npm install)
  8. run npm run-script build
  9. Go to Elsa sln and build it from Visual Studio…

This worked for me (at least as far as I remember, it was last week 😃). Try and let me know if you have any problems.

0reactions
tomy2105commented, Mar 22, 2021

If @sfmskywalker approves I could do a pull request adding these steps into root Readme.md

Read more comments on GitHub >

github_iconTop Results From Across the Web

Handling Workflow Exceptions
In the folder tree, right-click the Exception Handlers folder (located within the selected workflow template definition folder), and select Create Exception ...
Read more >
Handling Workflow Exceptions
The workflow exception handling facility enables you to define, trap, and respond to internally and externally generated exception conditions at run time.
Read more >
Exceptions in the Workflow Definition
In a workflow definition, the possible object method exceptions are offered for selection as outcomes of the step. You can model subsequent steps...
Read more >
WorkflowOwnershipException Class (System.Workflow. ...
Initializes a new instance of the WorkflowOwnershipException class by using a specified workflow instance Guid, a specified error message, and a reference to ......
Read more >
Exception Handling in Workflow Systems - CORE Scholar
Workflow exceptions: All exceptions form a hierarchy rooted at class Exception. Two basic groups of exceptions include system exceptions and user-defined ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found