ngx-monaco-editor
ngx-monaco-editor copied to clipboard
The "id" argument must be of type string
I'm on Angular 10 and used the latest version deployed on npm 10.0.0-beta.1
. I'm just trying to setup a very basic example. Getting the following error. Am I missing something?
TypeError [ERR_INVALID_ARG_TYPE]: The "id" argument must be of type string. Received an instance of Array
at validateString (internal/validators.js:117)
at Module.require (internal/modules/cjs/loader.js:1016)
at require (internal/modules/cjs/helpers.js:77)
at onGotAmdLoader (ngx-monaco-editor.js:34)
at ngx-monaco-editor.js:51
at new ZoneAwarePromise (zone-evergreen.js:960)
at EditorComponent.ngAfterViewInit (ngx-monaco-editor.js:25)
at callHook (core.js:3105)
at callHooks (core.js:3075)
at executeInitAndCheckHooks (core.js:3027)
at resolvePromise (zone-evergreen.js:798)
at new ZoneAwarePromise (zone-evergreen.js:963)
at EditorComponent.ngAfterViewInit (ngx-monaco-editor.js:25)
at callHook (core.js:3105)
at callHooks (core.js:3075)
at executeInitAndCheckHooks (core.js:3027)
at refreshView (core.js:7391)
at refreshEmbeddedViews (core.js:8421)
at refreshView (core.js:7344)
at refreshComponent (core.js:8467)
Did you ever find the answer to this question? I'm having the same issue.
same issue
Same issue. Any update? workaround?