Can't import tree-sitter
Unanswered
Transvaal lion posted this in #help-forum
Transvaal lionOP
I'm trying to use tree-sitter in the following way on the server side:
But I can't work around this error:
import Parser from "tree-sitter";
import JavaScript from "tree-sitter-javascript";
const parser: Parser = new Parser();
parser.setLanguage(JavaScript);But I can't work around this error:
./node_modules/tree-sitter-javascript/bindings/node/index.js
Module not found: Can't resolve '../../build/Release/tree_sitter_javascript_binding' in '/home/guy/workspace/code-graph/node_modules/tree-sitter-javascript/bindings/node'