question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

TypeError: Cannot read property 'composed' of undefined

See original GitHub issue

For security reasons, I can’t share some debug logs with sensitive material. So areas that have I used REMOVED

Expected Behavior

Running lerna publish should prompt me for all changes since last release

Current Behavior

Running npx lerna publish --git-remote upstream --conventional-commits --no-verify-registry --no-verify-access --registry=REMOVED

5 error TypeError: Cannot read property 'composed' of undefined
5 error     at new Command (/Users/REMOVED/Projects/REMOVED/components-react/node_modules/@lerna/command/index.js:30:33)
5 error     at new VersionCommand (/Users/REMOVED/Projects/REMOVED/components-react/node_modules/@lerna/version/index.js:40:1)
5 error     at factory (/Users/REMOVED/Projects/REMOVED/components-react/node_modules/@lerna/version/index.js:37:10)
lerna.json

{
  "command": {
    "publish": {
      "message": "chore: publish"
    }
  },
  "packages": [
    "components/*",
    "tools/*"
  ],
  "version": "independent"
}

Context

We use a private NPM solution Nexus Repository Manager, which is not 100% a true NPM solution, we are locked to the version of lerna that still uses the no-registry flag. Unless there’s a way around this. With that version, when we run the lerna publish and it fails, it’s very difficult to get it back into a place that it knows there are changes again. It seems lerna thinks it’s published, but it never got to our private server. Any help with this would be appreciated.

Your Environment

Executable Version
lerna --version 3.3.2
npm --version 6.4.1
node --version 10.15.0
OS Version
NAME VERSION
macOS Mojave 10.14.4

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:16 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
mbulfaircommented, Feb 6, 2019

Closing the issue, some of the issues I was having was with artifactory setup, it’s been resolved, doing a npm login first, then a lerna publish works perfectly now.

0reactions
evocateurcommented, Feb 6, 2019

Thanks for following up!

Read more comments on GitHub >

github_iconTop Results From Across the Web

I get a TypeError: Cannot read property 'getPosts' of undefined ...
I get a TypeError: Cannot read property 'getPosts' of undefined when registering a new user ... Much progress was made towards solving the...
Read more >
How to Prevent the Error: Cannot Read Property '0' of Undefined
A guide on how to prevent the error "cannot Read Property '0' of Undefined", covering techniques such as try, catch, using const over...
Read more >
typeerror: cannot read property 'descendant' of undefined
TypeError : Cannot read properties of undefined (reading 'Descendant') I have a React.js application which I have a Dockerfile and both the app...
Read more >
Uncaught TypeError : Cannot read properties of undefined
As we are discussing the Error Uncaught TypeError: Cannot read property of undefined, let's understand the JavaScript built-in error first, ...
Read more >
I am started getting error "TypeError: Cannot read property ...
But I haven't made any changes to that component at all. ... Uncaught TypeError: Cannot read property 'add' of undefined · Issue #1 ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found