You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Executing an application with a next.config.ts file instead of next.config.{js,mjs,cjs} results in an error: NX Cannot find configuration for task template-app:dev.
Expected Behavior
As of v15.0.0-canary.60, Next.js now supports next.config.ts configuration files. See additional information below for resolution.
GitHub Repo
No response
Steps to Reproduce
Create an nx repo.
Add the @nx/next dependency and setup the plugin.
Add a Next.js application with a next.config.ts file.
Try to run a nx build, nx dev, or the like for the target application.
See error.
Nx Report
Node : 20.9.0
OS : darwin-arm64
Native Target : aarch64-macos
bun : 1.1.22
<!-- Please make sure you have read the submission guidelines before
posting an PR -->
<!--
https://github.com/nrwl/nx/blob/master/CONTRIBUTING.md#-submitting-a-pr
-->
<!-- Please make sure that your commit message follows our format -->
<!-- Example: `fix(nx): must begin with lowercase` -->
<!-- If this is a particularly complex change or feature addition, you
can request a dedicated Nx release for this pull request branch. Mention
someone from the Nx team or the `@nrwl/nx-pipelines-reviewers` and they
will confirm if the PR warrants its own release for testing purposes,
and generate it for you if appropriate. -->
## Current Behavior
<!-- This is the behavior we have today -->
## Expected Behavior
<!-- This is the behavior we should expect with the changes in this PR
-->
## Related Issue(s)
<!-- Please link the issue being fixed so it gets closed when this is
merged. -->
Fixes#28572
Current Behavior
Executing an application with a
next.config.ts
file instead ofnext.config.{js,mjs,cjs}
results in an error:NX Cannot find configuration for task template-app:dev
.Expected Behavior
As of v15.0.0-canary.60, Next.js now supports
next.config.ts
configuration files. See additional information below for resolution.GitHub Repo
No response
Steps to Reproduce
@nx/next
dependency and setup the plugin.next.config.ts
file.nx build
,nx dev
, or the like for the target application.Nx Report
Node : 20.9.0
OS : darwin-arm64
Native Target : aarch64-macos
bun : 1.1.22
nx (global) : 19.3.0
nx : 19.7.4
@nx/js : 19.7.4
@nx/jest : 19.7.4
@nx/linter : 19.7.4
@nx/eslint : 19.7.4
@nx/workspace : 19.7.4
@nx/devkit : 19.7.4
@nx/eslint-plugin : 19.7.4
@nx/next : 19.7.4
@nx/react : 19.7.4
@nrwl/tao : 19.7.4
@nx/web : 19.7.4
@nx/webpack : 19.7.4
typescript : 5.7.0-dev.20240925
Registered Plugins:
@nx/next/plugin
Failure Logs
No response
Package Manager Version
No response
Operating System
Additional Information
By adjusting this line from:
const nextConfigBlob = '**/next.config.{js,cjs,mjs}';
to
const nextConfigBlob = '**/next.config.{js,cjs,mjs,ts}';
fixes the issue.
The text was updated successfully, but these errors were encountered: