Could not load edge function at '/opt/build/repo/.netlify/edge-functions/server.js'
#122
-
I am using the
as suggested in the I then recreated a project from a template, this time versioned in a Each builds fails with:
Running
Posts on
Attempting to build using the
What does work though is running I am not sure if this is something to do with the template or should I be asking this question on the main |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Following posting this discussion, I decided to build the project ground up to see at what point the app deployment broke. It would turn out that it's the My import type {
V2_MetaFunction,
LoaderFunction,
LoaderArgs
} from "@remix-run/node";
import {
json
} from "@remix-run/node";
export const loader: LoaderFunction = async ({ request }: LoaderArgs) => {
return json({ message: "Hello World" });
} I can also confirm that the My conclusion is that it's something to do with the Edge Function API and how I did find the blog post outlining using edge functions with Remix and I assume the template referenced in the blog post is the same that Wonder if it's worth providing a sample for developers to work from? |
Beta Was this translation helpful? Give feedback.
Since you're using edge functions, import from
@remix-run/deno
. Try that out and let me know if that gets it sorted.