You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: