Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Next.js edge runtime #98

Open
ryscheng opened this issue Nov 21, 2023 · 0 comments
Open

Support Next.js edge runtime #98

ryscheng opened this issue Nov 21, 2023 · 0 comments

Comments

@ryscheng
Copy link
Contributor

Using Next.js 14 app dir, rendering a single page on the edge runtime

Reference:
https://nextjs.org/docs/app/building-your-application/rendering/edge-and-nodejs-runtimes

Gets the following error

   ▲ Next.js 14.0.3
   - Environments: .env.local

   Creating an optimized production build ...
Failed to compile.

../node_modules/.pnpm/@plasmicapp+loader-nextjs@1.0.302_next@14.0.3_react-dom@18.2.0_react@18.2.0/node_modules/@plasmicapp/loader-nextjs/dist/index.js:110:26
Module not found: Can't resolve 'path'

https://nextjs.org/docs/messages/module-not-found

../node_modules/.pnpm/@plasmicapp+loader-nextjs@1.0.302_next@14.0.3_react-dom@18.2.0_react@18.2.0/node_modules/@plasmicapp/loader-nextjs/dist/react-server.js:77:26
Module not found: Can't resolve 'path'

https://nextjs.org/docs/messages/module-not-found

Import trace for requested module:
./plasmic-init.ts
./app/project/[...slug]/page.tsx
../node_modules/.pnpm/next@14.0.3_@babel+core@7.22.10_react-dom@18.2.0_react@18.2.0/node_modules/next/dist/build/webpack/loaders/next-edge-ssr-loader/index.js?{"absolute500Path":"","absoluteAppPath":"next/dist/pages/_app","absoluteDocumentPath":"next/dist/pages/_document","absoluteErrorPath":"next/dist/pages/_error","absolutePagePath":"private-next-app-dir/project/[...slug]/page.tsx","buildId":"iZRoI2VTnhx1czVnpd36h","dev":false,"isServerComponent":true,"page":"/project/[...slug]/page",
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant