Bit: Can not tag -- Error: "Can not set property 'version' of undefined"

Created on 31 Dec 2018  路  7Comments  路  Source: teambit/bit

Trying to tag a component after updating docs.

Status

$ bit status
modified components
(use "bit tag --all [version]" to lock a version with all your changes)
(use "bit diff" to compare changes)

     > util/dispatch ... ok


components pending to be tagged automatically (when their dependencies are tagged)
     > jhamlet.ink/util/store ... ok

Result of Trying to Tag

$ bit tag -v -m "Updating docs" util/dispatch
猗傗爛 building components(node:66342) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
Cannot set property 'version' of undefined

I've tried --all, tagging util/store first, and using the -v verbose flag to get more useful information but nothing more than the above is shown.

Steps to Reproduce the Problem

  1. Repository branch
  2. Commands used are above

Specifications

  • Bit version: 13.0.5
  • Node version: v10.9.0
  • npm / yarn version: 6.2.0
  • Platform: Mac OS X 10.13.6 (17G4015)
  • Bit compiler (include version): bit.envs/compilers/[email protected]
  • Bit tester (include version): bit.envs/testers/[email protected]
aretag typbug

Most helpful comment

@apendua , unfortunately, it's not an easy cherry-pick. The files were changed a lot since 13.0.4. The release of the new version, however, will happen very soon.

All 7 comments

I was able to reproduce the issue with [email protected], however, when trying with master it worked as expected.
(@jhamlet do not try to use master since this will affect your entire workspace, and you won't be able to export it to bitsrc until we release the version).
The issue has been resolved, but I'll try to see if I can find a workaround for you until we release the version.

As a quick workaround, you can import util/dispatch into a temp folder, make the change, tag and export it. Then import the new version on your repo.
This is not a great solution, I know.
But as I said before it's already solved for the next version.
I tested this myself and it worked.

@GiladShoham Thanks for the update! Do you have an estimate on when the next version will be published?

@GiladShoham I tried the workaround you described above but unfortunately it does not work for me. If I import the module into temp folder and I try to apply the change, the tagging process hangs at "running specs" phase, even though the same tests are passing without problems in my original workspace. What other approach would you suggest?

Would it be possible to cherry-pick the fix for the issue described here and publish it before 13.0.6 is released? Lemme know if you need any help with that, I am happy to contribute.

@apendua , unfortunately, it's not an easy cherry-pick. The files were changed a lot since 13.0.4. The release of the new version, however, will happen very soon.

This has been fixed and released a while ago (v14.0.0 I believe).

@jhamlet If you still face this with the new version (14.0.1), please re-open.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

itaymendel picture itaymendel  路  16Comments

nsams picture nsams  路  12Comments

AmitFeldman picture AmitFeldman  路  22Comments

ranm8 picture ranm8  路  16Comments

yairEO picture yairEO  路  19Comments