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

Cannot convert undefined or null to object on init #16505

Closed
tutods opened this issue Apr 24, 2023 · 1 comment · Fixed by #16508
Closed

Cannot convert undefined or null to object on init #16505

tutods opened this issue Apr 24, 2023 · 1 comment · Fixed by #16508
Assignees

Comments

@tutods
Copy link

tutods commented Apr 24, 2023

Current Behavior

When run the npx nx@latest init I received the following error
image

Expected Behavior

It's my first time with Nx, but it's supposed to create the project.

GitHub Repo

No response

Steps to Reproduce

  1. run npx nx@latest init

Nx Report

TypeError: Cannot convert undefined or null to object
    at Function.keys (<anonymous>)
    at /Users/tutods/.npm/_npx/f948e921c5898768/node_modules/nx/src/nx-init/add-nx-to-npm-repo.js:27:32
    at Generator.next (<anonymous>)
    at /Users/tutods/.npm/_npx/f948e921c5898768/node_modules/tslib/tslib.js:167:75
    at new Promise (<anonymous>)
    at Object.__awaiter (/Users/tutods/.npm/_npx/f948e921c5898768/node_modules/tslib/tslib.js:163:16)
    at addNxToNpmRepo (/Users/tutods/.npm/_npx/f948e921c5898768/node_modules/nx/src/nx-init/add-nx-to-npm-repo.js:20:20)
    at Object.<anonymous> (/Users/tutods/.npm/_npx/f948e921c5898768/node_modules/nx/src/command-line/init.js:53:63)
    at Generator.next (<anonymous>)
    at /Users/tutods/.npm/_npx/f948e921c5898768/node_modules/tslib/tslib.js:167:75

Failure Logs

No response

Additional Information

No response

@github-actions
Copy link

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 May 26, 2023
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.

2 participants