Closed batazor closed 1 year ago
You just have to turn experimental.serverActions
or output: 'export'
off and the build error should be gone :)
Hi, as mentioned above, Server Actions require a server. output: "export"
generates a set of static files only, so these two features cannot be combined.
This closed issue has been automatically locked because it had no new activity for a month. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you.
Verify canary release
Provide environment information
Which area(s) of Next.js are affected? (leave empty if unsure)
App directory (appDir: true)
Link to the code that reproduces this issue or a replay of the bug
https://github.com/shortlink-org/shortlink/tree/main/ui/nx-monorepo/packages/landing
To Reproduce
Describe the Bug
After upgrading to the latest version (I also checked the beta). I get an error:
Expected Behavior
successful build
Which browser are you using? (if relevant)
No response
How are you deploying your application? (if relevant)
No response