S
Supabase2mo ago
E.J.

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
E.J.
E.J.OP2mo ago
Another folder. This is a lovable mixed project. Im refering to import { corsHeaders } from "../_shared/cors.ts";
ihm40
ihm402mo ago
does the folder _shared and cors.ts exist?
E.J.
E.J.OP2mo ago
Yes They do. That's why the error is so weird I created a ticket
ihm40
ihm402mo ago
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?

Did you find this page helpful?