Nested parsing: TypeError: Cannot read property 'some' of undefined #1
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Hi,
Thank you for your work on this project.
I try to experiment building a lezer parser for a language similar to HTML.
When I run the tests, I get this error on mixed tests:
I can replicate this error on
lezer-htmlwhen testingmixed.txtusing0.13deps.I use node 14.
Do you have the same issue?
Thanks
The tests in the lezer-html repository run fine for me, also on a fresh checkout. Could you say a bit more about what you are doing?
I'm experiencing a similar issue, which occurs when attempting to write anything inside a
scriptblock. Not sure if they're related, but based on the stack trace it looks very similar:Maybe related to https://github.com/codemirror/dev/issues/1064 ?
This package is deprecated. Use the package named "codemirror" instead.
Yes, apologies. It's not used in the project (just forgot to remove the package) - I'm using the latest (
^6.0.1) ofcodemirror.I can't seem to reproduce what you are describing.
Same, maybe this has something to do with react. Strange that it's almost the exact same error though.
It's very strange, can't seem to replicate it on CodeSandbox either, using the exact same packages I use locally.
https://codesandbox.io/p/sandbox/rodemirror-forked-vdgcvj?file=%2Fpages%2Findex.tsx&selection=%5B%7B%22endColumn%22%3A42%2C%22endLineNumber%22%3A10%2C%22startColumn%22%3A42%2C%22startLineNumber%22%3A10%7D%5D
Locally, I don't even get any syntax highlighting. No clue what's going on - sorry for bumping this issue!


Solved by
npm uninstalling all related packages and reinstalling them fresh. Thank you for your patience, hope you have a good weekend :)