[go: nahoru, domu]

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

No CRC-32C implementation available error in 9.8.0 #3247

Closed
nicholaschiang opened this issue Mar 31, 2021 · 1 comment · Fixed by #3249
Closed

No CRC-32C implementation available error in 9.8.0 #3247

nicholaschiang opened this issue Mar 31, 2021 · 1 comment · Fixed by #3249

Comments

@nicholaschiang
Copy link
nicholaschiang commented Mar 31, 2021

[REQUIRED] Environment info

firebase-tools: 9.7.0

Platform: Vercel Serverless Functions (Linux)

[REQUIRED] Test case

When you deploy a project to Vercel that lists firebase-tools@9.8.0 as a dependency (even if its just a development dependency), the following error occurs at runtime:

2021-03-31T03:13:51.397Z	185d337e-6d34-461e-870f-d2888b290646	ERROR	Uncaught Exception 	
{
  "errorType":"Error",
  "errorMessage":"no CRC-32C implementation is available",
  "stack":[
    "Error: no CRC-32C implementation is available","
      at Object.calculate (/var/task/node_modules/fast-crc32c/loader.js:18:13)","
      at PassThrough.onData [as _transform] (/var/task/node_modules/hash-stream-validation/index.js:23:37)","
      at PassThrough.Transform._read (_stream_transform.js:191:10)","
      at PassThrough.Transform._write (_stream_transform.js:179:12)","
      at doWrite (_stream_writable.js:403:12)","
      at writeOrBuffer (_stream_writable.js:387:5)","
      at PassThrough.Writable.write (_stream_writable.js:318:11)","
      at PassThrough.ondata (_stream_readable.js:718:22)","
      at PassThrough.emit (events.js:314:20)","
      at addChunk (_stream_readable.js:297:12)"
  ]
}
Unknown application error occurred

[REQUIRED] Steps to reproduce

  1. Create a new Next.js app that uses firebase-tools@9.8.0.
  2. Deploy that app to Vercel.
  3. Try to call the app's API routes.
  4. See error in Vercel logs.

[REQUIRED] Expected behavior

There should be no error. While I don't actually expect you to try to create this error, I'm creating this issue just in case anyone else has a similar issue (and this issue will help them determine that the source of it is firebase-tools@9.8.0 and not anything to do with Vercel). You might also have some good pointers for why this might be happening in their serverless runtime environment.

[REQUIRED] Actual behavior

See the above error logs.

@samtstern
Copy link
Contributor

This is fixed in version 9.9.0

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

Successfully merging a pull request may close this issue.

2 participants