Code not working properly
Closed this issue · 0 comments
a145789 commented
I tried to use the code from the test directory in my project.
When I replace the local reference with monaco-volar
, in there
Line 3 in e6e9c3c
import { loadGrammars, loadTheme } from "monaco-volar";
Browser console reports an error.
Uncaught Error: Cannot read properties of undefined (reading 'OnigString')
TypeError: Cannot read properties of undefined (reading 'OnigString')
at Object.createOnigString (rule.js:214:27)
at Grammar2._tokenize (grammar.js:348:35)
at Grammar2.tokenizeLine (grammar.js:314:22)
at Object.tokenize (index.js:41:37)
at TokenizationSupportAdapter.tokenizeEncoded (standaloneLanguages.js:180:43)
at safeTokenize (textModelTokens.js:383:37)
at TextModelTokenization._heuristicallyTokenizeViewport (textModelTokens.js:321:23)
at TextModelTokenization.tokenizeViewport (textModelTokens.js:226:14)
at TokenizationTextModelPart.tokenizeViewport (tokenizationTextModelPart.js:138:28)
at ViewModel.tokenizeViewport (viewModelImpl.js:119:37)
at errors.js:15:27
I don't know why this error is happening, is it a problem with my usage.