-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
@nx/next importing ts file into next.config.ts file causing build to break #28960
Closed
1 of 4 tasks
Comments
ndcunningham
added a commit
that referenced
this issue
Nov 25, 2024
ndcunningham
added a commit
that referenced
this issue
Nov 27, 2024
<!-- 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 #28960
FrozenPandaz
pushed a commit
that referenced
this issue
Nov 28, 2024
<!-- 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 #28960 (cherry picked from commit 8eb6159)
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. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Current Behavior
When attempting to build a nextjs app and using typescript config files. If I import another typescript file (in my case a common next config from libs) I'm getting the following error
Failing in my
next.config.ts
file hereIf I go into
node_modules/@nx/next/src/executors/build/lib/create-next-config-file.js
on line 157 I seeconst extensions = ['.js', '.cjs', '.mjs', '.json'];
Addingts
to this array fixes the issueOn a separate note I had to import it like that because doing
import { nextSecurityConfigs } from '@PROJECT/next-configs
gave me a module not found error during the serve and build targetsExpected Behavior
I should be able to use typescript import files in typescript files
GitHub Repo
No response
Steps to Reproduce
Nx Report
Failure Logs
Package Manager Version
Yarn 4.2.2
Operating System
Additional Information
No response
The text was updated successfully, but these errors were encountered: