Bit: packageNameToComponentId unable to determine the id of api, it has no dot and is not exists on .bitmap

Created on 2 Jul 2020  路  2Comments  路  Source: teambit/bit

Describe the bug

While trying to export the built components, I have an error localy. The export seems to be well performed as I have my components in my cloud collection.

$ bit export digitalproductstudio.trainingapp please use "--rewire" flag to fix the import/require statements between "api" is requiring "[email protected]" with relative path the current import/require module has no scope-name, which result in an invalid module path upon import $ bit export digitalproductstudio.trainingapp --rewire packageNameToComponentId unable to determine the id of api, it has no dot and is not exists on .bitmap $ bit export digitalproductstudio.trainingapp nothing to export $ bit status packageNameToComponentId unable to determine the id of api, it has no dot and is not exists on .bitmap $ bit list found 0 components in local scope

Steps to Reproduce

  1. init bit
  2. login
  3. added a component
    bit add src/components/welcome.vue --id welcome --main src/components/welcome.vue
  4. added it's dependencies
    bit add src/services/AuthenticationService.js src/services/EmailService.js src/services/api.js src/store.js
  5. configure bit for custom path
    "resolveModules": { "modulesDirectories": ["src"], "aliases": { "@": "src" } }
  6. Rewire
    bit link --rewire
  7. build
  8. tag
    bit tag --all 0.1.1
  9. export: I have a first error here:
    ````
    $ bit export digitalproductstudio.trainingapp
    please use "--rewire" flag to fix the import/require statements between "api" is requiring "[email protected]" with relative path
    the current import/require module has no scope-name, which result in an invalid module path upon import
    `````
    10 I try to fix it with
$ bit export digitalproductstudio.trainingapp --rewire
`````
But then I have 

packageNameToComponentId unable to determine the id of api, it has no dot and is not exists on .bitmap
and nothing to export nor components in local scope
$ bit export digitalproductstudio.trainingapp
nothing to export
$ bit status
packageNameToComponentId unable to determine the id of api, it has no dot and is not exists on .bitmap
$ bit list
found 0 components in local scope
````

Expected Behavior

No error and the list of components I just exported in the local scope

Specifications

  • Bit version: 14.8.2
  • Node version: 12.4.0
  • npm version: 6.11.2
  • Platform: Vue (vue cli + webpack)
  • Bit compiler (include version): bit.envs/bundlers/[email protected]
  • Bit tester (include version): none
typbug

Most helpful comment

@thibaultchazal , The new version v14.8.4 has been released.
Please re-open if the issue still happens with the new version.

All 2 comments

We fixed this issue yesterday. I'll publish a new version today or Sunday

@thibaultchazal , The new version v14.8.4 has been released.
Please re-open if the issue still happens with the new version.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

viiralt picture viiralt  路  11Comments

AmitFeldman picture AmitFeldman  路  22Comments

seed-of-apricot picture seed-of-apricot  路  21Comments

JoshK2 picture JoshK2  路  12Comments

poriaz picture poriaz  路  15Comments