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
Regression: Hawk update broke compatibility with Node 6.10 #2891
Comments
This has happened to us also. We're using Jest, which pulls in this module, so as of an hour ago all our builds are now broken. We're also working with AWS Lambda so have to target Node 6. Given how many other people are likely in the same situation this could break a lot of things! |
Same error for firebase cloud functions Detailed stack trace: /user_code/node_modules/request/node_modules/sntp/lib/index.js:19
exports.time = async function (options = {}) {
^^^^^^^^
SyntaxError: Unexpected token function Fixed by locking version at |
+1 |
+1 |
+1 Try to add request 2.38.0 to your devDependencies - should help. |
same here, installing $ yarn install
yarn install v1.3.2
info No lockfile found.
[1/4] Resolving packages...
[2/4] Fetching packages...
info fsevents@1.1.3: The platform "linux" is incompatible with this module.
info "fsevents@1.1.3" is an optional dependency and failed compatibility check. Excluding it from installation.
error hawk@7.0.7: The engine "node" is incompatible with this module. Expected version ">=8.9.0".
error Found incompatible module
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
ERROR: Job failed: exit code 1 |
We are failing deployment to production with all of our services. Any word from @simov ?? |
I made a workaround using
Now Then I had to patch Hopefully this will be fixed soon… |
Same here... |
+1... |
+1 |
+1 =( |
+1 |
+10000000000000000000000000000000000000000000 |
+1 |
I've reverted the update to Hawk 7.x and hopefully this is going to fix the issue, because right now the tests on TravisCI are failing for Node >= v8 for some reason, the tests for Node < v8 are failing because of sntp dev dep, and locally the test are failing for yet another reason .. Anyway will publish a new version shortly. |
In case it can help, the dependency chain we had: OK: nodemw@0.11.0 -> request@2.83.0 -> hawk@6.0.2 -> sntp@2.1.0 FAIL: nodemw@0.11.0 -> request@2.84.0 -> hawk@7.0.7 -> sntp@3.0.1 Thank you @simov !!! |
Request version |
v2.85.0 is published |
Thank you for the quick response/fix. It works again. 👍 💯 |
+1, fixed now. Thanks. |
+1 |
+1 Good |
+1 Circle is happy with us now. Ty. |
The first goal would be to get our tests working again. I guess that's the reason why this got merged in without anyone noticing it. Then For reasons why we won't/can't bump the major version here, you can read @mikeal's comments about it in this issue tracker. Thanks for your patience! 👍 |
+1 |
see #2943 |
For some reason that I don't quite understand, npm in Node6 completely ignores the fact that
sntp
package.json has"node": ">=8.9.0"
in it and installs this very version as a dependency of updatedhawk
. 30 minutes ago you updatedrequest
and my app has completely gone out of production withSyntaxError: exports.time = async function (options = {} ) {
The problem is, I don't install
request
directly, it is installed as a dependency of another package I have no control over. And it requires"request": "^2.53.0"
. Also I cannot change node version, since 6.10 is the latest available in AWS Lambda.I really have no idea how to fix this on my end. Please help…
The text was updated successfully, but these errors were encountered: