KilworthK
Convex Community10mo ago
6 replies
Kilworth

Implementing push notifications with Convex using Firebase SDK

I know that the Node runtime is only available in actions, but when I try to import the Firebase SDK, I get several errors like this one:

[ERROR] Could not resolve "stream"

node_modules/@google-cloud/firestore/build/src/reference/query-util.js:19:25:
19 │ const stream_1 = require("stream");
~~~~

The package "stream" wasn't found on the file system but is built into Node. Are you trying to
bundle for Node? You can use "platform: 'node'" to do that, which will remove this error.

Any ideas on how to fix this?
I already tried use node directive at the top of the file
Thanks
Was this page helpful?