Cannot read properties of undefined (reading 'pos')

Our website uses codemirror 6, and the monitoring of the website recently reported a js error.

[globalError]Cannot read properties of undefined (reading 'pos')

The error stack is shown in the images below:






The error stack does not have an website entry, so how can I locate this problem? or is there any usage may cause this problem?

Can you give me the parser and the input that produces this crash?

I’m sorry I can’t, due to out component support all languages with language-data and the monitor did’t report the specific info because we dont know how to catch error like this

Too bad. It looks like some fundamental assumption in the parser library (there always being one active parse stack) is being violated somehow, but I couldn’t figure out from reading nearby code how this is happening—so it’d be helpful to be able to reproduce this.