Skip to content

Allowing Experimental features #67

@MincePie

Description

@MincePie

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingquestionFurther information is requested

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions