Trying to deploy a new function manually is giving me cors.ts module not found
Failed to deploy edge function: failed to create the graph Caused by: Module not found "file:///tmp/user_fn_xuwtdffvqxdqtcvfydqp_e19e8263-210f-46d5-9590-793efcf2da14_1/_shared/cors.ts". at file:///tmp/user_fn_xuwtdffvqxdqtcvfydqp_e19e8263-210f-46d5-9590-793efcf2da14_1/source/index.ts:20:29
4 Replies
Another folder. This is a lovable mixed project. Im refering to import { corsHeaders } from "../_shared/cors.ts";
does the folder _shared and cors.ts exist?
Yes
They do. That's why the error is so weird
I created a ticket
do you have a screenshot of the files by any chance i.e i want to see the file causing the issue and i want to see where
_shared/cors.ts
is?