Skip to content

[✨ Triage] dotnet/aspire#12954 by jmezach - Using IInteractionService from WithEnvironment callback results in obscu ... #20

@MihuBot

Description

@MihuBot

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:


Issue #12954 (Nov 2025) - Using IInteractionService from WithEnvironment callback results in obscure JS module not found error

  • Summary: The user attempts to use IInteractionService in a WithEnvironment() callback to prompt for a value before starting a resource. This results in a JS module not found error in the Aspire dashboard, specifically System.InvalidOperationException: JS module is not loaded. in FluentDialogProvider.ShowDialogAsync.
  • No comments yet.

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 InteractionService for 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 BeforeStart event deadlocks app host, even when checking IsAvailable.
  • Discussion: Suggests that IsAvailable should be false if dashboard isn't running.
  • Relevance: Related to lifecycle and availability, but not JS module 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.
  • 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.

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.

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.

PR #12886 (Nov 2025) - Workaround bug in interaction provider when displaying dialogs on load


Summary and Triage Guidance

  • Your issue is most closely related to the recent work on IInteractionService and 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 IInteractionService in a WithEnvironment callback 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


Let me know if you need a deeper dive into any specific related issue or PR!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions