-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
Triage for dotnet/aspire#12954.
Repo filter: area-dashboard issues.
MihuBot version: 8857bd.
Ping MihaZupan for any issues.
This is a test triage report generated by AI, aimed at helping the triage team quickly identify past issues/PRs that may be related.
Take any conclusions with a large grain of salt.
Tool logs
dotnet/aspire#12954: Using IInteractionService from WithEnvironment callback results in obscure JS module not found error by jmezach
[Tool] Searching for IInteractionService WithEnvironment JS module not loaded, WithEnvironment callback dashboard interaction, JS module not loaded dashboard, FluentDialogProvider ShowDialogAsync JS error, Aspire dashboard interaction dialog error (IncludeOpen=True, IncludeClosed=True, IncludeIssues=True, IncludePullRequests=True, Repository=dotnet/aspire)
[Tool] Searching for environment variable interaction dashboard, prompt environment variable dashboard, interaction dialog environment variable (IncludeOpen=True, IncludeClosed=True, IncludeIssues=True, IncludePullRequests=True, Repository=dotnet/aspire)
[Tool] Found 40 issues, 32 comments (28177 ms)
[Tool] Found 40 issues, 34 comments (35928 ms)
Here are the related issues, PRs, and discussions for the reported problem:
Most Directly Related
Issue #12954 (Nov 2025) - Using IInteractionService from WithEnvironment callback results in obscure JS module not found error
- Summary: The user attempts to use
IInteractionServicein aWithEnvironment()callback to prompt for a value before starting a resource. This results in a JS module not found error in the Aspire dashboard, specificallySystem.InvalidOperationException: JS module is not loaded.inFluentDialogProvider.ShowDialogAsync. - No comments yet.
Related to InteractionService and Prompting for Values
Issue #9807 (June 2025) - Prompt for values
- Summary: Requests an API for prompting users for values before running resources, e.g., via dashboard or CLI. Describes a streaming gRPC interaction model for dashboard prompts.
- Discussion: JamesNK describes a model for dashboard interaction, including dialog prompts before resource start. This is the feature area your issue is trying to use.
- Relevance: Confirms prompting for values before resource start is a supported scenario, but does not discuss JS errors.
PR #9943 (June 2025) - Interaction service
- Summary: Introduces
InteractionServicefor prompting users in dashboard or CLI. Discusses API, testing, and defensive coding for when dashboard is disabled. - Discussion: Covers how to check if the service is available, and defensive coding for headless scenarios.
- Relevance: Lays groundwork for the feature, but does not address JS module errors.
PR #10014 (June 2025) - Handle interaction service unimplemented and tests
- Summary: Handles cases where app host doesn't implement interaction service, avoids infinite retry loops.
- Relevance: Defensive handling for unavailable interaction service, but not JS errors.
PR #10131 (June 2025) - Interaction service improvements
- Summary: UI improvements for input dialogs, validation, and stress testing.
- Relevance: UI/UX improvements, not error handling.
Issue #11371 (Sep 2025) - Using InteractionSerivce in BeforeStart deadlocks
- Summary: Using interaction service in
BeforeStartevent deadlocks app host, even when checkingIsAvailable. - Discussion: Suggests that
IsAvailableshould be false if dashboard isn't running. - Relevance: Related to lifecycle and availability, but not JS module errors.
Related to Dashboard JS Errors
Issue #2004 (Jan 2024) - Errors on the dashboard when navigating
- Summary: JS error: "Cannot create a JSObjectReference from the value 'undefined'." Occurs in FluentUI components.
- Relevance: Similar JS interop error, but not about module loading.
Issue #741 (Nov 2023) - Lots of dashboard errors
- Summary: JSDisconnectedException when dashboard circuit disconnects.
- Relevance: JS interop errors, but not module loading.
Issue #759 (Nov 2023) - Error in dashboard after accidentally clicking "View" link for env vars on Executables page
- Summary: JS error: "Cannot create a JSObjectReference from the value 'undefined'."
- Relevance: JS interop error, not module loading.
Issue #5482 (Aug 2024) - Unexpected error when using Dashboard
- Summary: JS error: "Cannot read properties of null (reading 'focusableElement')" in FluentUI.
- Relevance: JS error in FluentUI, not module loading.
Related to Environment Variable Handling and WithEnvironment
PR #8298 (Mar 2025) - Add resource to environment callback context
- Summary: Improves ability to get resource info in environment callbacks.
- Relevance: Related to WithEnvironment callback, but not interaction or JS errors.
Issue #166 (Sep 2023) - Support secrets in app model environment settings
- Summary: Discusses API for secrets in environment variables.
- Relevance: Related to environment variable API, not interaction or JS errors.
Discussion #11825 (Oct 2025) - How can I get the environment variables in my custom resource
- Summary: How to access env vars and endpoints in custom resources via WithEnvironment callback.
- Discussion: Shows how to use WithEnvironment callback, but not about interaction or JS errors.
Related to Dashboard Lifecycle and Initialization
PR #1775 (Jan 2024) - Start dashboard first for playground scenario
- Summary: Ensures dashboard starts before other resources.
- Relevance: Ensures dashboard is ready for interactions, but not about JS errors.
PR #1667 (Jan 2024) - Run dashboard out-of-process
- Summary: Dashboard is run as an orchestrated resource.
- Relevance: Dashboard lifecycle, not JS errors.
Related to FluentUI/Blazor JS Module Loading
PR #12886 (Nov 2025) - Workaround bug in interaction provider when displaying dialogs on load
- Summary: Fixes bug in interaction provider when displaying dialogs on load, caused by regression in FluentUI.
- Discussion: References a regression in FluentUI-Blazor (Return focus when dialog is closed to element focused before open microsoft/fluentui-blazor#4095).
- Relevance: This is highly relevant! It fixes a bug where dialogs fail to display due to JS module loading issues. Your issue may be a duplicate or related to this regression.
Summary and Triage Guidance
- Your issue is most closely related to the recent work on
IInteractionServiceand dashboard interaction dialogs. - The JS module not loaded error appears to be a regression in FluentUI-Blazor, as referenced in PR #12886.
- PR #12886 fixes a bug in the interaction provider when displaying dialogs on load, caused by a regression in FluentUI-Blazor.
- If you are using a version affected by this regression, updating FluentUI-Blazor or Aspire to include this fix may resolve your issue.
- No other issues directly discuss using
IInteractionServicein aWithEnvironmentcallback causing JS module errors, but several discuss interaction lifecycle, availability, and defensive coding.
Action Items
- Check if your Aspire and FluentUI-Blazor versions include the fix from PR #12886.
- If not, try updating to the latest versions.
- If the issue persists, reference PR #12886 and this triage summary in your issue for further investigation.
References
- PR #12886 - Workaround bug in interaction provider when displaying dialogs on load
- PR #9943 - Interaction service
- Issue #9807 - Prompt for values
- Issue #11371 - Using InteractionSerivce in BeforeStart deadlocks
Let me know if you need a deeper dive into any specific related issue or PR!
Metadata
Metadata
Assignees
Labels
No labels