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

Upgrading from 15.3.0 to 15.3.3 produces bug in all cmds: "Cannot read properties of undefined (reading 'data')" #13831

Closed
DrunkenPadawan opened this issue Dec 14, 2022 · 7 comments
Labels

Comments

@DrunkenPadawan
Copy link

Current Behavior

After update all of the https://github.com/nrwl packages from 15.3.0 to 15.3.3 this error occures.

NX Cannot read properties of undefined (reading 'data')

Because of the error the Nx daemon process has exited. The next Nx command is going to restart the daemon process.
If the error persists, please run "nx reset".

Expected Behavior

No errors

Github Repo

No response

Steps to Reproduce

  1. Update packages from 15.3.0 to 15.3.3
  2. Run any command
  3. Every single command, in every single project gives me this error. That is why I'm having trouble debugging it.

Nx Report

>  NX   Cannot read properties of undefined (reading 'data')

   
   Because of the error the Nx daemon process has exited. The next Nx command is going to restart the daemon process.
   If the error persists, please run "nx reset".

Failure Logs

Nothing.

Additional Information

Nothing.

@DrunkenPadawan
Copy link
Author

Update

After deleting node_modules and yarn.lock, and reinstalling dependencies, I got it to work locally. I am still, however, getting this error in vercel after deploying with the new yarn.lock. (No cache is used)

@YeomansIII
Copy link

Getting this and all kinds of similar weird errors after upgrading to 15.3.3.

Separate issue, but I'm also seeing generatePackageJson for my NestJs project is now generating package.json with empty dependencies, even though the generated package-lock.json has the list of dependencies.

@caiquelsousa
Copy link

Same here, after updating to 15.3.3 I can't get it to work, I ran the migrations but it doesn't solve the issue

@boavenn
Copy link

boavenn commented Dec 15, 2022

In my case bumping Lerna to 6.1.x caused the same issue:

Lerna (powered by Nx)   Cannot read properties of undefined (reading 'data')

Constraining the version by setting "nx": "15.3.0" in dev dependencies resolved the issue though

@vadistic
Copy link

vadistic commented Dec 16, 2022

FYI, some debugging tips

  • the undefined happens somewhere here nx/src/lock-file/utils/hashing.js:43:37
  • downgrade to 15.3.0 helped
  • we're using yarn berry

image

@meeroslav
Copy link
Contributor

This has been fixed with #13803 I believe.

@FrozenPandaz FrozenPandaz added the scope: core core nx functionality label Dec 20, 2022
@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 Mar 21, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

7 participants