Hi,
I’m trying to delete by code a contact from ‘Contact List’ using the deleteContact() function from ‘wix-crm-backend’ module. Unfortunately, I’m not able to do this as the following error is displayed:
Cannot find module ‘wix-crm-backend’ in ‘public/pages/masterPage.js’
Can somebody help me to solve this problem ?
Because it is a backend api which can only be imported on a backend file. You are trying to import it on a public file. Read this article for a better understanding of how to call backend functions from page.
Thanks a lot!