We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b5db02a commit 8ba3a59Copy full SHA for 8ba3a59
packages/app/src/app/components/CodeEditor/Monaco/mode.js
@@ -12,7 +12,10 @@ export default async (title: string, monaco) => {
12
if (kind[1] === 'json') return 'json';
13
if (kind[1] === 'html') return 'html';
14
if (kind[1] === 'vue') {
15
- if (!monaco.languages.getLanguages().find(l => l.id === 'vue')) {
+ if (
16
+ monaco.languages.getLanguages &&
17
+ !monaco.languages.getLanguages().find(l => l.id === 'vue')
18
+ ) {
19
await requireAMDModule(['vs/language/vue/monaco.contribution']);
20
}
21
return 'vue';
0 commit comments