I discovered this one when pasting a svelte file into a buffer that used an HTML grammar, but you can reproduce it on the official playground: choose HTML in the drop-down, then paste
<svelte:head>
into the Code box. Check the console for the error — it's the tell-tale symptom of tree-sitter#949.
to lib/binding_web/exports.json and building my own version of web-tree-sitter, but ultimately this is a symptom of an individual grammar not being able to define its own exports.json.
I discovered this one when pasting a
svelte
file into a buffer that used an HTML grammar, but you can reproduce it on the official playground: choose HTML in the drop-down, then pasteinto the Code box. Check the console for the error — it's the tell-tale symptom of tree-sitter#949.
I can fix it by adding
to
lib/binding_web/exports.json
and building my own version ofweb-tree-sitter
, but ultimately this is a symptom of an individual grammar not being able to define its ownexports.json
.