Hello does zustand works well with next-on-pages?
Hello does zustand works well with next-on-pages?
error.tsx at the root of my app directory:not-found.tsx with this:"pages:build": "npx @cloudflare/next-on-pages",error.tsx and not-found.tsx and the error persists..next, .vercel, and node_modules directory then rebuilding everything, issue persists14.0.0 as I saw that's what was used in the next-on-pages e2e tests, and the issue persists..page.tsx, layout.tsx, and route.tsx, and specified the edge runtime, I'm completely stumped.use client from error.tsx gives this:async from not-found.tsx (which doesn't have any logic, just returns a div saying "not found", and it still gives the same error:layout.tsx file had the following:platforms approach, so don't have a root page.tsx file, only a layout.




any), use a comment above it to allow it (eslint allow I believe?) or disable the ESLint lint.npm run dev on wsl meanwhile npm run preview doesn't work within powershell as wrangler does not want to work. Switching between the two is GREAT fun.
BUN_VERSION env var to override the bun version'use client' after that do all the server stuff in page.tsx and it should workFirebaseError: Firebase: Error (auth/network-request-failed).⚡️ ERROR: Failed to produce a Cloudflare Pages build from the project.
⚡️
⚡️ The following routes were not configured to run with the Edge Runtime:
⚡️ - /_error
⚡️
⚡️ Please make sure that all your non-static routes export the following edge runtime route segment config:
⚡️ export const runtime = 'edge';
⚡️
⚡️ You can read more about the Edge Runtime on the Next.js documentation:
⚡️ https://nextjs.org/docs/app/building-your-application/rendering/edge-and-nodejs-runtimes⚡️ ERROR: Failed to produce a Cloudflare Pages build from the project.
⚡️
⚡️ The following routes were not configured to run with the Edge Runtime:
⚡️ - /_error
⚡️
⚡️ Please make sure that all your non-static routes export the following edge runtime route segment config:
⚡️ export const runtime = 'edge';
⚡️
⚡️ You can read more about the Edge Runtime on the Next.js documentation:
⚡️ https://nextjs.org/docs/app/building-your-application/rendering/edge-and-nodejs-runtimeserror.tsxerror.tsxerror.tsx'use client';
export const runtime = 'edge';
export default function Error() {
return (
<div>
<h1>Oops! Something went wrong.</h1>
<p>Try refreshing the page?</p>
</div>
);
}not-found.tsxnot-found.tsxnot-found.tsxexport const runtime = 'edge';
export default async function NotFound() {
// ...
return (
<div>
<h1>Not Found</h1>
</div>
);
}"next": "14.2.12",
"@cloudflare/next-on-pages": "^1.13.2","pages:build": "npx @cloudflare/next-on-pages",.next.vercel14.0.0.page.tsxlayout.tsxlayout.tsxroute.tsxuse client ./app/error.tsx must be a Client Component. Add the "use client" directive the top of the file to resolve this issue.export const runtime = 'edge';
export const dynamic = 'force-dynamic';
export const revalidate = 0;platformsnpm run previewnpm create cloudflare@latest -- my-next-app --framework=next> next build
▲ Next.js 14.2.5
Attempted import error: 'flushSync' is not exported from 'react-dom' (imported as 'ReactDOM').
Import trace for requested module:
./node_modules/@radix-ui/react-primitive/dist/index.mjs
./node_modules/@radix-ui/react-aspect-ratio/dist/index.mjs
./node_modules/@radix-ui/themes/dist/esm/components/aspect-ratio.js
./node_modules/@radix-ui/themes/dist/esm/components/index.js
./node_modules/@radix-ui/themes/dist/esm/index.js
./app/layout.tsx
./node_modules/next/dist/build/webpack/loaders/next-app-loader.js?name=app%2F_not-found%2Fpage&page=%2F_not-found%2Fpage&pagePath=private-next-app-dir%2Fnot-found.tsx&appDir=C%3A%5CUsers%5CSHREYAS%5CDesktop%5Cktc-website%5Capp&appPaths=%2Fnot-found&pageExtensions=tsx&pageExtensions=ts&pageExtensions=jsx&pageExtensions=js&basePath=&assetPrefix=&nextConfigOutput=&preferredRegion=&middlewareConfig=e30%3D!./app/not-found.tsx?__next_edge_ssr_entry__
> Build failed because of webpack errorsBUN_VERSION'use client'