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

Next 13.4.x incompatibility with withNx in 16.1.1 #16830

Closed
1 of 4 tasks
roderik opened this issue May 6, 2023 · 2 comments
Closed
1 of 4 tasks

Next 13.4.x incompatibility with withNx in 16.1.1 #16830

roderik opened this issue May 6, 2023 · 2 comments

Comments

@roderik
Copy link

roderik commented May 6, 2023

Current Behavior

on build:

- error Failed to load next.config.js, see more info here https://nextjs.org/docs/messages/next-config-error

 >  NX   Cannot read properties of undefined (reading 'serverActions')

   Pass --verbose to see the stacktrace.

Caused by https://github.com/nrwl/nx/blob/842c41232d7c072383305c25e44c7d80b7bf725b/packages/next/plugins/with-nx.ts#L163-L166C6

Fixed by adding this to my next configs

  experimental: {
    serverActions: true,
  },

Expected Behavior

My apps to compile

GitHub Repo

No response

Steps to Reproduce

  1. see current behaviour

Nx Report

Node   : 18.16.0
   OS     : darwin arm64
   pnpm   : 8.4.0
   Hasher : Native
   
   nx                 : 16.1.1
   @nx/js             : 16.1.1
   @nx/jest           : 16.1.1
   @nx/linter         : 16.1.1
   @nx/workspace      : 16.1.1
   @nrwl/workspace    : 14.8.8
   @nx/cypress        : 16.1.1
   @nx/devkit         : 16.1.1
   @nrwl/devkit       : 14.8.8
   @nx/eslint-plugin  : 16.1.1
   @nx/nest           : 16.1.1
   @nx/next           : 16.1.1
   @nx/node           : 16.1.1
   @nx/react          : 16.1.1
   @nx/rollup         : 16.1.1
   @nrwl/tao          : 16.1.1
   @nx/web            : 16.1.1
   @nx/webpack        : 16.1.1
   nx-cloud           : 16.0.5
   typescript         : 5.0.4
   ---------------------------------------
   Community plugins:
   @nx-go/nx-go                     : 2.7.0
   @nx-plus/docusaurus              : 14.1.0
   @nx-tools/nx-container           : 4.0.3
   @trumbitta/nx-plugin-unused-deps : 1.12.1
   @webpro/nx-tsc                   : 0.0.1
   nest-commander-schematics        : 3.0.0
   ---------------------------------------
   The following packages should match the installed version of nx
     - @nrwl/[email protected]
     - @nrwl/[email protected]
   
   To fix this, run `nx migrate [email protected]`

Failure Logs

- error Failed to load next.config.js, see more info here https://nextjs.org/docs/messages/next-config-error

 >  NX   Cannot read properties of undefined (reading 'serverActions')

   Pass --verbose to see the stacktrace.

Operating System

  • macOS
  • Linux
  • Windows
  • Other (Please specify)

Additional Information

No response

@roderik
Copy link
Author

roderik commented May 8, 2023

Duplicate of #16845

@roderik roderik closed this as completed May 8, 2023
@github-actions
Copy link

github-actions bot commented Jun 8, 2023

This issue has been closed for more than 30 days. If this issue is still occuring, please open a new issue with more recent context.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 8, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant