Question:
Hello I am getting this error
Get values failed. Info: TypeError: (0 , google_sheets_integration_backend.getValues) is not a function
in the code:
import wixLocation from ‘wix-location’;
import { currentMember } from “wix-members-frontend”;
import { getValues } from “@velo/google-sheets-integration-backend”;
export async function getValuesWrapper(range) {
try {
const sheetId = spreadsheetId;
const result = await getValues(sheetId, range);
const response = result.data.values;
return response;
} catch (err) {
return Promise.reject("Get values failed. Info: " + err);
}
}
Product:
Wix Velo
What are you trying to achieve:
retrieving a google sheet cell value
What have you already tried:
tried putting the function in a backend file, getting same error on the wrapper function
Additional information:
Thank you for your help