serdarciplak / BlazorMonaco

Blazor component for Microsoft's Monaco Editor which powers Visual Studio Code.
https://serdarciplak.github.io/BlazorMonaco/
MIT License
449 stars 100 forks source link

Object reference not set to an instance of an object for minimal example. #95

Closed TrieBr closed 1 year ago

TrieBr commented 1 year ago

After installing this library, adding the JS included and then adding a basic example:

<StandaloneCodeEditor Id="my-editor-instance-id" />

I get the following error:

 Unhandled exception rendering component: Object reference not set to an instance of an object.
System.NullReferenceException: Object reference not set to an instance of an object.
   at BlazorMonaco.Editor.StandaloneCodeEditor.OnAfterRenderAsync(Boolean firstRender)
TrieBr commented 1 year ago

Duplicate of #43