Introducing CrudHunt:Open-source Full-stack CRUDs for Next.js by KeenThemes
Browse CrudHunt

Microsoft.JSInterop.JSException: Cannot set properties of undefined (setting ‘moment’) TypeError


Hi,

I get below error

blazor.server.js:1 [2022-02-23T20:44:39.025Z] Error: Microsoft.JSInterop.JSException: Cannot set properties of undefined (setting ‘moment’) TypeError: Cannot set properties of undefined (setting ‘moment’) at http://localhost:5091/assets/plugins/global/plugins.bundle.js:25:168435 at http://localhost:5091/assets/plugins/global/plugins.bundle.js:25:168440 at Microsoft.JSInterop.JSRuntime.InvokeAsyncTValue at BlazorApp.Shared.MainLayout.OnAfterRenderAsync(Boolean firstRender) in /Users/kardohussein/Desktop/Korek/mohe/BlazorApp/Shared/MainLayout.razor:line 4007 at Microsoft.AspNetCore.Components.RenderTree.Renderer.GetErrorHandledTask(Task taskToHandle, ComponentState owningComponentState)


Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(

Replies (0)