Closed jussij closed 2 years ago
tree-sitter-javascript is pinned to commit 2c5b138
It's possible that, for some reason, your tree-sitter-javascript in node_modules is not matching that commit (I had this problem recently).
Try the following:
cd node_modules
rm -rf ./tree-sitter-javascript
git clone https://github.com/tree-sitter/tree-sitter-javascript
cd tree-sitter-javascript
git reset --hard 2c5b138
cd ../..
npm run build-typescript
npm run build-tsx
I can confirm running these commands does fix the issue:
git clone https://github.com/tree-sitter/tree-sitter-javascript
cd tree-sitter-javascript
git reset --hard 2c5b138
Thanks :)
I ran a git clone on the typescript and javascript repositories:
The generate on the javascript project works as expected.
However, when I run the generate on the typescript project I get this error:
Any suggestions?