Skip to content
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

Dependencies don't fully support ES2015 classes #37

Open
redbugz opened this issue Jul 26, 2017 · 0 comments
Open

Dependencies don't fully support ES2015 classes #37

redbugz opened this issue Jul 26, 2017 · 0 comments

Comments

@redbugz
Copy link

redbugz commented Jul 26, 2017

We have some code that uses ast-query, and it has started choking on some newer ES2015 features. The current error we get is this:
Error: Unknown node type Super.
at Controller.traverse (my-project/node_modules/estraverse/estraverse.js:518:31)
at traverse (my-project/node_modules/estraverse/estraverse.js:710:27)
at Object.attachComments (my-project/node_modules/estraverse/estraverse.js:799:9)
at new Tree (my-project/node_modules/ast-query/lib/tree.js:33:25)
at module.exports (my-project/node_modules/ast-query/lib/tree.js:115:10)
....

After digging in, it appears that escodegen-wallaby has an outdated dependency on estraverse (1.9.x), which causes it to fail to parse certain newer code. estraverse has been updated with the fixes (4.x), but escodegen-wallaby has not been updated to use it. There is already an open issue on the upstream escodegen repo to update the estraverse dependency.

Just FYI. Feel free to close since the issue is really with escodegen-wallaby.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant