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

Allowing Experimental features #67

Open
MincePie opened this issue Aug 14, 2023 · 0 comments
Open

Allowing Experimental features #67

MincePie opened this issue Aug 14, 2023 · 0 comments
Labels
bug Something isn't working question Further information is requested

Comments

@MincePie
Copy link

I tried cloning this repo and set my next.config.js to:


/** @type {import('next').NextConfig} */
const nextConfig = {
  reactStrictMode: true,
  swcMinify: true,
  experimental: {
    serverActions: true,
  },
  
};

module.exports = nextConfig;

i did this because I want to try using the Server Actions features descirbed in this video: https://www.youtube.com/watch?v=gPyKKD6mODE&t=2002s (which references this repo in its resources for server actions).

When I try to use this - I get an error that says:

Error occurred prerendering page "/". Read more: https://nextjs.org/docs/messages/prerender-error
TypeError: (0 , import_react.useEffect) is not a function
at Analytics (/v9/.next/server/chunks/447.js:32321:32)
at T (/v9/.next/server/chunks/447.js:25855:13)
at Za (/v9/.next/server/chunks/447.js:25960:21)
at Array.toJSON (/v9/.next/server/chunks/447.js:25774:20)
at stringify ()
at da (/v9/.next/server/chunks/447.js:25432:9)
at gb (/v9/.next/server/chunks/447.js:26069:29)
at Timeout._onTimeout (/v9/.next/server/chunks/447.js:25905:16)
at listOnTimeout (node:internal/timers:569:17)
at process.processTimers (node:internal/timers:512:7)

  • info Generating static pages (5/5)

Export encountered errors on following paths:
/page: /
 ELIFECYCLE  Command failed with exit code 1.

Does anyone know how to use this repo with server actions?

@maige-app maige-app bot added bug Something isn't working question Further information is requested labels Aug 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant