Zachoo
Zachoo3mo ago

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
3 Replies
Convex Bot
Convex Bot3mo ago
Thanks for posting in <#1088161997662724167>. Reminder: If you have a Convex Pro account, use the Convex Dashboard to file support tickets. - Provide context: What are you trying to achieve, what is the end-user interaction, what are you seeing? (full error message, command output, etc.) - Use search.convex.dev to search Docs, Stack, and Discord all at once. - Additionally, you can post your questions in the Convex Community's <#1228095053885476985> channel to receive a response from AI. - Avoid tagging staff unless specifically instructed. Thank you!
jamwt
jamwt3mo ago
hi there. is this action a "use node"; action already?