ZachooZ
Convex Community16mo ago
3 replies
Zachoo

Send FCM notifications from convex backend

has anyone cracked sending FCM notification from convex nackend if i try use any admin sdk from google i get errors like the following.

" The package "crypto" 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.

[ERROR] Could not resolve "util"

../../node_modules/.pnpm/jws@3.2.2/node_modules/jws/lib/data-stream.js:4:19:
4 │ var util = require('util');
~~

The package "util" 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.

[ERROR] Could not resolve "util"

../../node_modules/.pnpm/jwa@1.4.1/node_modules/jwa/index.js:5:19:
5 │ var util = require('util');
~~

The package "util" 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.

[ERROR] Could not resolve "buffer"

../../node_modules/.pnpm/buffer-equal-constant-time@1.0.1/node_modules/buffer-equal-constant-time/index.js:3:21:
3 │ var Buffer = require('buffer').Buffer; // browserify
~~~~

The package "buffer" 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.

"

can anyone point me in right direction to make work I have service account json as an env in convex
Was this page helpful?