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

pnpm create nx-workspace is broken #21628

Closed
2 of 4 tasks
alois-reinstadler opened this issue Feb 5, 2024 · 2 comments
Closed
2 of 4 tasks

pnpm create nx-workspace is broken #21628

alois-reinstadler opened this issue Feb 5, 2024 · 2 comments
Assignees

Comments

@alois-reinstadler
Copy link

alois-reinstadler commented Feb 5, 2024

Current Behavior

Using pnpm create nx-workspace nx-demo with whatever options fails with an error log that cannot be found.

Failed to create a workspace.

Exit code: 1
Log file: /tmp/tmp-4633-2rl3IWEa4D0w/error.log

The log file seems nowhere to be found. I tried it on a windows machine and WSL. Both failed with the same mysterious error log. It doesn't seem to matter what preset you use (none, react, etc.) or if want to set up caching or not, it all fails.

Expected Behavior

Create a nx-workspace

GitHub Repo

No response

Steps to Reproduce

  1. run pnpm create nx-workspace nx-demo

  2. pick whatever options you want

  3. watch it fail

Nx Report

node:internal/process/esm_loader:97
    internalBinding('errors').triggerUncaughtException(
                              ^

Error [ERR_MODULE_NOT_FOUND]: Cannot find package 'ts-node' imported from /home/private/code/nx-demo/
Did you mean to import [email protected]_@[email protected][email protected]/node_modules/ts-node/esm.mjs?
    at new NodeError (node:internal/errors:405:5)
    at packageResolve (node:internal/modules/esm/resolve:887:9)
    at moduleResolve (node:internal/modules/esm/resolve:936:20)
    at defaultResolve (node:internal/modules/esm/resolve:1129:11)
    at nextResolve (node:internal/modules/esm/loader:163:28)
    at ESMLoader.resolve (node:internal/modules/esm/loader:835:30)
    at ESMLoader.getModuleJob (node:internal/modules/esm/loader:424:18)
    at ESMLoader.import (node:internal/modules/esm/loader:524:22)
    at initializeLoader (node:internal/process/esm_loader:75:58)
    at loadESM (node:internal/process/esm_loader:90:11) {
  code: 'ERR_MODULE_NOT_FOUND'
}

Node.js v18.17.0

Failure Logs

node:internal/process/esm_loader:97
    internalBinding('errors').triggerUncaughtException(
                              ^

Error [ERR_MODULE_NOT_FOUND]: Cannot find package 'ts-node' imported from /home/private/code/nx-demo/
Did you mean to import [email protected]_@[email protected][email protected]/node_modules/ts-node/esm.mjs?
    at new NodeError (node:internal/errors:405:5)
    at packageResolve (node:internal/modules/esm/resolve:887:9)
    at moduleResolve (node:internal/modules/esm/resolve:936:20)
    at defaultResolve (node:internal/modules/esm/resolve:1129:11)
    at nextResolve (node:internal/modules/esm/loader:163:28)
    at ESMLoader.resolve (node:internal/modules/esm/loader:835:30)
    at ESMLoader.getModuleJob (node:internal/modules/esm/loader:424:18)
    at ESMLoader.import (node:internal/modules/esm/loader:524:22)
    at initializeLoader (node:internal/process/esm_loader:75:58)
    at loadESM (node:internal/process/esm_loader:90:11) {
  code: 'ERR_MODULE_NOT_FOUND'
}

Node.js v18.17.0

Package Manager Version

pnpm 8.15.1

Operating System

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

Additional Information

Using the normal npm create nx-workspace still works just fine. I hope this isn't a mistake on my end, but if it is please just let my know.

@alois-reinstadler alois-reinstadler changed the title create-nx-workspace is broken as of v18 pnpm create-nx-workspace is broken Feb 5, 2024
@alois-reinstadler alois-reinstadler changed the title pnpm create-nx-workspace is broken pnpm create nx-workspace is broken Feb 5, 2024
@jaysoo jaysoo self-assigned this Feb 6, 2024
@jaysoo
Copy link
Member

jaysoo commented Feb 6, 2024

Fixed here: #21623

@jaysoo jaysoo closed this as completed Feb 6, 2024
Copy link

github-actions bot commented Mar 8, 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 Mar 8, 2024
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

2 participants