ngx-monaco-editor icon indicating copy to clipboard operation
ngx-monaco-editor copied to clipboard

The "id" argument must be of type string

Open cchandurkar opened this issue 4 years ago • 3 comments

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)

cchandurkar avatar Nov 21 '20 04:11 cchandurkar

Did you ever find the answer to this question? I'm having the same issue.

thechayed avatar Mar 01 '21 05:03 thechayed

same issue

benpeterswake avatar Mar 05 '21 00:03 benpeterswake

Same issue. Any update? workaround?

ckorbet avatar Jul 21 '21 10:07 ckorbet