Use tree-sitter-javascript parser


#1

Hi, I’m trying to use the tree-sitter-javascript parser to get a syntax tree of a javascript file. But everytime I tried to use “const Parser = require(‘tree-sitter-javascript’)”, atom would give me this error:

A dynamic link library (DLL) initialization routine failed.

\\?\C:\Users\qi_qi\.atom\packages\atombubble\node_modules\tree-sitter- 
javascript\build\Release\tree_sitter_javascript_binding.node in 
C:\Users\qi_qi\.atom\packages\atombubble\grammars\tree-sitter-javascript.cson

I then used electron-rebuild, but it would then change the error to something about different node module versions 57 or something.