Kilworth
CCConvex Community
•Created by Kilworth on 3/26/2025 in #support-community
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
7 replies