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
npm test fails with token const error. Any idea on how in can resolve it? #320
Comments
@visualjeff Hard to tell, but it looks like you're running If that's the case, then you need to find where espree is being used in your project. When you call |
Yes, I'm building a hapi server. I will grep the project and then the node modules to attempt to find where espree is being used. I'll share my findings. Thank you for the hint. |
Its lab 11.2.2 that is using espree. node_modules/lab/lib/coverage.js:36 I'm going to attempt to bring up the version of lab and test again. |
@visualjeff So either the lab module does not support coverage for ES6 syntax, or the lab module will have configuration you can tweak to ensure it calls espree with ES6+ configuration. In either case, this is likely not an espree issue, so I'm going to close the issue. Please reopen if you believe there's still an espree issue after your investigation. Thanks! |
Think I found out what is causing the issue. |
Resolved. |
Node: 6.9.1
Hapi: ^16.0.1
Lab: ^11.2.1
Its been driving me nuts... Anybody else run into this?
Any tips or pointers would be appreciated. Its just showed up after I blew away my node_modules directory and performed a fresh npm install.
Thanks,
Jeff
The text was updated successfully, but these errors were encountered: