-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
[BUG] Cannot read properties of null (reading 'isWorkspace') #5129
Comments
There's also similar code to this comment in the return (shouldSkipChildren)
? []
: [...(node.target).edgesOut.values()]
.filter(filterBySelectedWorkspaces) So I'm guessing that |
I added in some logging to the ls command, and managed to get this out: const filterBySelectedWorkspaces = edge => {
console.log({edge: edge, spec: edge.spec, to: edge.to?.location});
before it crashes. So it looks like In my case, I don't believe the peerDep of |
Update: I installed |
the condition in |
@nlf thanks! no real rush on getting this fixed, as for now it's a minor annoyance in our multi-package repo (it's one we don't need to touch much, thankfully) |
test and fix were landed, this is fixed in [email protected] |
Is there an existing issue for this?
This issue exists in the latest npm version
Current Behavior
When doing
npm ls --include-workspace-root --workspace eslint-config-react @babel/polyfill
in https://github.com/inrupt/javascript-style-configs I receive the following error:I believe this may be related to #5007 and the fix described in the latest comment.
Expected Behavior
npm ls
should find the given package without error, if the package is used.Steps To Reproduce
See above, using npm 8.13.x and node 16.13.x
Environment
The text was updated successfully, but these errors were encountered: