-
Notifications
You must be signed in to change notification settings - Fork 106
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Node 16 Can't Resolve Tree Sitter #114
Comments
I ran into a similar issue today, the issue was that my I had to add |
Do you guys know how to make it work in Next JS? I installed Error: node-loader: |
Next.js might have to use the WASM version if you are not running tree-sitter only on the server side. node-tree-sitter is for Node.js, while Next.js also builds code to run in the browser. |
I agree with @segevfiner, you probably need to use web-tree-sitter not node-tree-sitter for a browser/React app. |
I'm trying to use the @cucumber/monaco Monaco editor library in a React project which uses tree-sitter for Node ParserAdapter but when I'm getting a bunch of resolve errors in the tree-sitter when I do this.
Environment: Node v16.17.1 (Docker Image 16.17)
Error Log:
Tree Sitter and the other tree-sitter-c-sharp, tree-sitter-java etc are all installed and in the node_modules directory of the project.
And when I look in the tree-sitter/build/Release I can see the tree_sitter_runtime_binding.node file
So why can't tree-sitter resolve it?
Have tried Node 18, that didn't work, tried running the build command directly from the node_modules/tree-sitter directory, didn't work, have tried installing tree-sitter in a new folder on it's own and getting the same error. Any help much appreciated.
The text was updated successfully, but these errors were encountered: