Here is my code
////////notifications.js/////
import wixCrm from 'wix-crm-backend'; export function notifyOwnerOnDashboard(title, action,site,role) { wixCrm.notifications.notify( title, ["Dashboard", "Browser", "Mobile"], { "title" : title, "actionTitle": action, "actionTarget": {"url": site}, "recipients": { "role": role} } ); console.log('Notification sent') }
////////////////////Home Page Code//////////////////
import wixCrm from 'wix-crm-backend'; export function notifyOwnerOnDashboard() { wixCrm.notifications.notify( "Notification body", ["Dashboard"], { "title": "Notification Title", "actionTitle": "Click this!", "actionTarget": {"url": "http://mysite.com/somepage"}, "recipients": {"role": "Owner"} } ); }
Notification not wok..
Error:Cannot find module 'wix-crm-backend' in 'public/pages/c1dmp.js'


