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

nx crash when using @nx/next AND root tsconfig paths is not defined #20599

Closed
1 of 4 tasks
CGQAQ opened this issue Dec 6, 2023 · 1 comment · Fixed by #20598
Closed
1 of 4 tasks

nx crash when using @nx/next AND root tsconfig paths is not defined #20599

CGQAQ opened this issue Dec 6, 2023 · 1 comment · Fixed by #20598

Comments

@CGQAQ
Copy link
Contributor

CGQAQ commented Dec 6, 2023

Current Behavior

image

Details

$ npm run serve-studio

> serve-studio
> nx serve @studio-b3/web-studio


> nx run @studio-b3/web-studio:serve:development

D:\Code\Personal\2b\node_modules\@nx\next\plugins\with-nx.js:329
    for (const [alias, lookup] of Object.entries(paths)) {
                                         ^
TypeError: Cannot convert undefined or null to object
    at Function.entries (<anonymous>)
    at getAliasForProject (D:\Code\Personal\2b\node_modules\@nx\next\plugins\with-nx.js:329:42)
    at D:\Code\Personal\2b\node_modules\@nx\next\plugins\with-nx.js:136:35
    at forNextVersion (D:\Code\Personal\2b\node_modules\@nx\next\plugins\with-nx.js:344:9)
    at D:\Code\Personal\2b\node_modules\@nx\next\plugins\with-nx.js:127:13
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async combined (D:\Code\Personal\2b\node_modules\@nx\next\src\utils\compose-plugins.js:12:30)
    at async normalizeConfig (D:\Code\Personal\2b\node_modules\next\dist\server\config-shared.js:146:12)
    at async loadConfig (D:\Code\Personal\2b\node_modules\next\dist\server\config.js:714:28)
    at async nextDev (D:\Code\Personal\2b\node_modules\next\dist\cli\next-dev.js:191:14)
Node.js v20.9.0
 >  NX   Next.js app exited with code 1
   Pass --verbose to see the stacktrace.

 —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— 

 >  NX   Running target serve for project @studio-b3/web-studio failed

   Failed tasks:

   - @studio-b3/web-studio:serve:development

   Hint: run the command with --verbose for more details.

Expected Behavior

don't crash

GitHub Repo

No response

Steps to Reproduce

Nx Report

>  NX   Report complete - copy this into the issue template

   Node   : 20.9.0
   OS     : win32-x64
   pnpm   : 8.11.0
   
   nx (global)        : 17.1.3
   nx                 : 17.1.3
   @nx/js             : 17.1.3
   @nx/jest           : 17.1.3
   @nx/linter         : 17.1.3
   @nx/eslint         : 17.1.3
   @nx/workspace      : 17.1.3
   @nx/devkit         : 17.1.3
   @nx/eslint-plugin  : 17.1.3
   @nx/next           : 17.1.3
   @nx/react          : 17.1.3
   @nrwl/tao          : 17.1.3
   @nx/web            : 17.1.3
   typescript         : 5.3.2

Failure Logs

No response

Package Manager Version

No response

Operating System

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

Additional Information

No response

Copy link

github-actions bot commented Jan 7, 2024

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 Jan 7, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant