If anyone searches this, managed to get it working. My root `layout.tsx` file had the following: ```
If anyone searches this, managed to get it working.
My root
layout.tsx
file had the following:
Which for my use case was fine, nearly every page retrieves data from a CMS, not much gets statically rendered.
Deleting the root layout fixed it and it built successfully, I wonder if it's because I'm using the platforms
approach, so don't have a root page.tsx
file, only a layout.
Will look into it more tomorrow but at least I've found how to make it compile!17 Replies
Hey everyone, I have the same issue. In my root file, layout.tsx, I added the following lines of code:
export const runtime = 'edge';
export const dynamic = 'force-dynamic';
export const revalidate = 0;
I think the problem is that the edge runtime doesn't have http and https modules so you should use the built-in fetch
@D Trombett But in the Vercel deployment, it runs perfectly without these lines:
export const runtime = 'edge';
export const dynamic = 'force-dynamic';
export const revalidate = 0;
if any solution for this please give me
Because Cloudflare next-on-pages requires edge runtime at the moment
While vercel doesn't
Unknown User•3mo ago
Message Not Public
Sign In & Join Server To View
What does the runtime edge limit in functionalities ?
Unknown User•3mo ago
Message Not Public
Sign In & Join Server To View
Oh that interesting ahah, because i want to make a next app using supabase so i imagine that i will have some problem to host it on pages ^^'
Unknown User•3mo ago
Message Not Public
Sign In & Join Server To View
I will finish by hosting it on my own kube cluster...
Unknown User•3mo ago
Message Not Public
Sign In & Join Server To View
Mmhhh, i have some people who are hosting on pages their app with supabase on reddit. But by reading on this feed it look like also some people facing some issue using pages and supabase
This is a next.js build error and not something we have control over
i dont have error in code :{
what is wrong with it
You have ESLint enabled and set to error when it finds a lint that's not followed.
Either fix the issue (don't use
any
), use a comment above it to allow it (eslint allow I believe?) or disable the ESLint lint.