import { getCustomerSupportsApi } from 'rpc';
export async function load() {
try {
const data = await getCustomerSupportsApi();
return { data };
} catch (error) {
console.error('Error occurred while loading customer supports:', error);
return { data: null };
}
}
this is my +page.ts code, whenever i save after writing this code, node server crashes
I tried to fetch the api from +page.ts to +page.svelte but the server crashes whenever i try to run it.
New contributor
Josuwa Lewis is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.