Skip to content

Blazor WebAssembly Error: Cannot read properties of undefined (reading 'out') after Publishing #56537

Closed as not planned
@jitendrajadav

Description

@jitendrajadav

I am encountering an issue with my Blazor WebAssembly application after publishing it. The application works fine in both development and release modes, but once I publish it, I receive the following errors:

dotnet.js:3 MONO_WASM: TypeError: Cannot read properties of undefined (reading 'out') at $l (https://ident.lordist.in/_framework/dotnet.runtime.8.0.6.71pl3usugk.js:3:198913) at ze (https://ident.lordist.in/_framework/dotnet.js:3:30902) at https://ident.lordist.in/_framework/dotnet.js:3:30138 at async Object.create (https://ident.lordist.in/_framework/dotnet.js:3:34517) at async https://ident.lordist.in/_framework/blazor.webassembly.js:1:43466 at async https://ident.lordist.in/_framework/blazor.webassembly.js:1:58010 at async mn (https://ident.lordist.in/_framework/blazor.webassembly.js:1:57613) u @ dotnet.js:3 dotnet.js:3 Error in mono_download_assets: TypeError: Cannot read properties of undefined (reading 'out') Q @ dotnet.js:3 9dotnet.runtime.8.0.6.71pl3usugk.js:3 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'out') at $l (dotnet.runtime.8.0.6.71pl3usugk.js:3:198913) at ze (dotnet.js:3:30902) at dotnet.js:3:30138 at async Object.create (dotnet.js:3:34517) at async blazor.webassembly.js:1:43466 at async blazor.webassembly.js:1:58010 at async mn (blazor.webassembly.js:1:57613) blazor.webassembly.js:1 Uncaught (in promise) Error: Failed to start platform. Reason: TypeError: Cannot read properties of undefined (reading 'out') at mn (blazor.webassembly.js:1:57654)

Details:

  1. Application URL: https://ident.lordist.in/ Repository:
  2. https://github.com/jitendrajadav/SLTDentalViewer Development
  3. Environment: Works fine in both development and release modes.
  4. Published Environment: Errors occur after publishing.

Steps to Reproduce:

Develop the Blazor WebAssembly application. Test it in development and release modes (both work fine). Publish the application. Access the published application at https://ident.lordist.in/ and encounter the error. What I've Tried:

  1. Ensuring all files are correctly published and accessible.
  2. Checking for any differences in configurations between development and published environments.
  3. Reviewing the published files for any missing dependencies or corrupted files.

Question:

What could be causing this error after publishing, and how can I resolve it? Any guidance or suggestions would be greatly appreciated.

Stack overflow question:
https://stackoverflow.com/questions/78688103/blazor-webassembly-error-cannot-read-properties-of-undefined-reading-out-af

Metadata

Metadata

Assignees

No one assigned

    Labels

    Needs: Attention 👋This issue needs the attention of a contributor, typically because the OP has provided an update.area-blazorIncludes: Blazor, Razor Componentsfeature-blazor-wasmThis issue is related to and / or impacts Blazor WebAssembly

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions