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/js" cannot infer build target #29578

Closed
1 of 4 tasks
jorgefranciscogil opened this issue Jan 10, 2025 · 3 comments
Closed
1 of 4 tasks

"@nx/js" cannot infer build target #29578

jorgefranciscogil opened this issue Jan 10, 2025 · 3 comments

Comments

@jorgefranciscogil
Copy link

Current Behavior

Through ‘@nx/js’ infer only typecheck task. Build task is missing.

Expected Behavior

Through ‘@nx/js’ infer automatically build and typecheck tasks.

GitHub Repo

No response

Steps to Reproduce

I follow the official npm tutorial up to @nx/js addition.

Nx Report

NX   Report complete - copy this into the issue template

Node           : 20.16.0
OS             : linux-x64
Native Target  : x86_64-linux
npm            : 10.8.1

nx (global)    : 20.3.1
nx             : 20.3.1
@nx/js         : 20.3.1
@nx/workspace  : 20.3.1
@nx/devkit     : 20.3.1
typescript     : 5.5.4
---------------------------------------
Registered Plugins:
@nx/js/typescript

Failure Logs

➜  tuskydesign-2 git:(main) ✗ npx nx build @tuskdesign/zoo --verbose

 NX   Cannot find configuration for task @tuskdesign/zoo:build

Error: Cannot find configuration for task @tuskdesign/zoo:build
    at ProcessTasks.createTask (/home/jcgl/repos/github/tuskydesign-2/node_modules/nx/src/tasks-runner/create-task-graph.js:163:19)
    at ProcessTasks.processTasks (/home/jcgl/repos/github/tuskydesign-2/node_modules/nx/src/tasks-runner/create-task-graph.js:36:39)
    at createTaskGraph (/home/jcgl/repos/github/tuskydesign-2/node_modules/nx/src/tasks-runner/create-task-graph.js:202:21)
    at createTaskGraphAndRunValidations (/home/jcgl/repos/github/tuskydesign-2/node_modules/nx/src/tasks-runner/run-command.js:78:63)
    at ensureWorkspaceIsInSyncAndGetGraphs (/home/jcgl/repos/github/tuskydesign-2/node_modules/nx/src/tasks-runner/run-command.js:132:21)
    at runCommandForTasks (/home/jcgl/repos/github/tuskydesign-2/node_modules/nx/src/tasks-runner/run-command.js:114:47)
    at /home/jcgl/repos/github/tuskydesign-2/node_modules/nx/src/tasks-runner/run-command.js:105:35
    at handleErrors (/home/jcgl/repos/github/tuskydesign-2/node_modules/nx/src/utils/handle-errors.js:8:30)
    at runCommand (/home/jcgl/repos/github/tuskydesign-2/node_modules/nx/src/tasks-runner/run-command.js:104:59)
    at Object.runOne (/home/jcgl/repos/github/tuskydesign-2/node_modules/nx/src/command-line/run/run-one.js:48:59)

Package Manager Version

No response

Operating System

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

Additional Information

I use WSL under windows.

wsl -l -v

NAME STATE VERSION

  • Ubuntu Running 2
@shohei-ot
Copy link

I have a same problem.

NX   Report complete - copy this into the issue template

Node           : 22.11.0
OS             : darwin-arm64
Native Target  : aarch64-macos
npm            : 10.9.0

nx             : 20.3.1
@nx/js         : 20.3.1
@nx/workspace  : 20.3.1
@nx/devkit     : 20.3.1
typescript     : 5.5.4
---------------------------------------
Registered Plugins:
@nx/js/typescript

@leosvelperez
Copy link
Member

This has been fixed by #29431 and it will be released soon.

@jorgefranciscogil
Copy link
Author

Ok. We'll be waiting for that, thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants