elsa-workflows / elsa-workflows/elsa-studio

Could not find 'AuthenticationService.init' ('AuthenticationService' was undefined).

Open
#914 1 comment 1 reaction 2 assignees Claimed by @sfmskywalker View on GitHub
triaged
Dominant language
C#
Stars
301
Forks
181
Avg merge
17h 12m
Merged PRs (30d)
42

Description

## Description
Could not find 'AuthenticationService.init' ('AuthenticationService' was undefined).

## Steps to Reproduce
1. Follow instructions from https://docs.elsaworkflows.io/application-types/elsa-server-+-studio-wasm
2. Temporarily fix this bug: https://github.com/elsa-workflows/elsa-core/issues/7759
3. You get:

```
crit: Microsoft.AspNetCore.Components.WebAssembly.Rendering.WebAssemblyRenderer[100]
Unhandled exception rendering component: Could not find 'AuthenticationService.init' ('AuthenticationService' was undefined).
Error: Could not find 'AuthenticationService.init' ('AuthenticationService' was undefined).
at I (https://localhost:5001/_framework/blazor.webassembly.js:1:6748)
at u.resolveInvocationHandler (https://localhost:5001/_framework/blazor.webassembly.js:1:379)
at S (https://localhost:5001/_framework/blazor.webassembly.js:1:6447)
at w.processJSCall (https://localhost:5001/_framework/blazor.webassembly.js:1:4440)
at w.beginInvokeJSFromDotNet (https://localhost:5001/_framework/blazor.webassembly.js:1:4125)
at Object.en [as invokeJSJson] (https://localhost:5001/_framework/blazor.webassembly.js:1:59109)
at https://localhost:5001/_framework/dotnet.runtime.a6jcqbs390.js:3:34586
at Mc (https://localhost:5001/_framework/dotnet.runtime.a6jcqbs390.js:3:175836)
at https://localhost:5001/_framework/dotnet.native.veuqw8a0w9.wasm:wasm-function[298]:0x1f797
at https://localhost:5001/_framework/dotnet.native.veuqw8a0w9.wasm:wasm-function[222]:0x1ca98
Microsoft.JSInterop.JSException: Could not find 'AuthenticationService.init' ('AuthenticationService' was undefined).
Error: Could not find 'AuthenticationService.init' ('AuthenticationService' was undefined).
at I (https://localhost:5001/_framework/blazor.webassembly.js:1:6748)
at u.resolveInvocationHandler (https://localhost:5001/_framework/blazor.webassembly.js:1:379)
at S (https://localhost:5001/_framework/blazor.webassembly.js:1:6447)
at w.processJSCall (https://localhost:5001/_framework/blazor.webassembly.js:1:4440)
at w.beginInvokeJSFromDotNet (https://localhost:5001/_framework/blazor.webassembly.js:1:4125)
at Object.en [as invokeJSJson] (https://localhost:5001/_framework/blazor.webassembly.js:1:59109)
at https://localhost:5001/_framework/dotnet.runtime.a6jcqbs390.js:3:34586
at Mc (https://localhost:5001/_framework/dotnet.runtime.a6jcqbs390.js:3:175836)
at https://localhost:5001/_framework/dotnet.native.veuqw8a0w9.wasm:wasm-function[298]:0x1f797
at https://localhost:5001/_framework/dotnet.native.veuqw8a0w9.wasm:wasm-function[222]:0x1ca98
at Microsoft.JSInterop.JSRuntime.d__23`1[[Microsoft.JSInterop.Infrastructure.IJSVoidResult, Microsoft.JSInterop, Version=10.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60]].MoveNext()
at Microsoft.JSInterop.JSRuntimeExtensions.InvokeVoidAsync(IJSRuntime jsRuntime, String identifier, Object[] args)
at Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteAuthenticationService`3.d__30[[Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteAuthenticationState, Microsoft.AspNetCore.Components.WebAssembly.Authentication, Version=10.0.3.0, Culture=neutral, PublicKeyToken=adb9793829ddae60],[Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteUserAccount, Microsoft.AspNetCore.Components.WebAssembly.Authentication, Version=10.0.3.0, Culture=neutral, PublicKeyToken=adb9793829ddae60],[Microsoft.AspNetCore.Components.WebAssembly.Authentication.OidcProviderOptions, Microsoft.AspNetCore.Components.WebAssembly.Authentication, Version=10.0.3.0, Culture=neutral, PublicKeyToken=adb9793829ddae60]].MoveNext()
at Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteAuthenticationService`3.d__29[[Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteAuthenticationState, Microsoft.AspNetCore.Components.WebAssembly.Authentication, Version=10.0.3.0, Culture=neutral, PublicKeyToken=adb9793829ddae60],[Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteUserAccount, Microsoft.AspNetCore.Components.WebAssembly.Authentication, Version=10.0.3.0, Culture=neutral, PublicKeyToken=adb9793829ddae60],[Microsoft.AspNetCore.Components.WebAssembly.Authentication.OidcProviderOptions, Microsoft.AspNetCore.Components.WebAssembly.Authentication, Version=10.0.3.0, Culture=neutral, PublicKeyToken=adb9793829ddae60]].MoveNext()
at Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteAuthenticationService`3.d__28[[Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteAuthenticationState, Microsoft.AspNetCore.Components.WebAssembly.Authentication, Version=10.0.3.0, Culture=neutral, PublicKeyToken=adb9793829ddae60],[Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteUserAccount, Microsoft.AspNetCore.Components.WebAssembly.Authentication, Version=10.0.3.0, Culture=neutral, PublicKeyToken=adb9793829ddae60],[Microsoft.AspNetCore.Components.WebAssembly.Authentication.OidcProviderOptions, Microsoft.AspNetCore.Components.WebAssembly.Authentication, Version=10.0.3.0, Culture=neutral, PublicKeyToken=adb9793829ddae60]].MoveNext()
at Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteAuthenticationService`3.d__19[[Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteAuthenticationState, Microsoft.AspNetCore.Components.WebAssembly.Authentication, Version=10.0.3.0, Culture=neutral, PublicKeyToken=adb9793829ddae60],[Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteUserAccount, Microsoft.AspNetCore.Components.WebAssembly.Authentication, Version=10.0.3.0, Culture=neutral, PublicKeyToken=adb9793829ddae60],[Microsoft.AspNetCore.Components.WebAssembly.Authentication.OidcProviderOptions, Microsoft.AspNetCore.Components.WebAssembly.Authentication, Version=10.0.3.0, Culture=neutral, PublicKeyToken=adb9793829ddae60]].MoveNext()
at Microsoft.AspNetCore.Components.Authorization.AuthorizeViewCore.OnParametersSetAsync()
at Microsoft.AspNetCore.Components.ComponentBase.CallStateHasChangedOnAsyncCompletion(Task task)
at Microsoft.AspNetCore.Components.ComponentBase.RunInitAndSetParametersAsync()
at Microsoft.AspNetCore.Components.RenderTree.Renderer.GetErrorHandledTask(Task taskToHandle, ComponentState owningComponentState)
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.