Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(components): 修复monaco-editor加载json worker报错问题 #833

Merged
merged 1 commit into from
Aug 10, 2020

Conversation

feizhen
Copy link

@feizhen feizhen commented Aug 10, 2020

使用monaco-editor编辑json文件,且开启json验证时,有可能因为加载不到json worker,
monaco.languages对象下会没有json属性,会报undefined错误,进而导致整个编辑器无法使用

使用monaco-editor编辑json文件,且开启json验证时,有可能因为加载不到json worker,
monaco.languages对象下会没有json属性,会报undefined错误,进而导致整个编辑器无法使用
@feizhen
Copy link
Author

feizhen commented Aug 10, 2020

报错如下:
image

image

@2betop 2betop merged commit cc9fc91 into baidu:master Aug 10, 2020
@2betop
Copy link
Collaborator

2betop commented Aug 10, 2020

thx

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants