monaco-react icon indicating copy to clipboard operation
monaco-react copied to clipboard

t.config is not a function

Open sea-xh opened this issue 3 years ago • 4 comments

image

点开一直处于loading,然后这个错

sea-xh avatar Aug 13 '21 10:08 sea-xh

@sea-xh I don't understand Chinese

suren-atoyan avatar Aug 14 '21 21:08 suren-atoyan

@sea-xh我听不懂中文

It can be used normally in local development, and an error will be reported when the code is deployed to other environments

sea-xh avatar Aug 15 '21 06:08 sea-xh

it seems your "other" environment has some restrictions/limitations regarding CDN. Note that by default the sources of the monaco are coming from the CDN (check your Network tab in the Devtools).

suren-atoyan avatar Aug 17 '21 19:08 suren-atoyan

@suren-atoyan please be aware than this fails due to missing window.require for some reason: Screenshot 2021-12-21 at 14 17 11

Ketler13 avatar Dec 21 '21 12:12 Ketler13