Publishing dependent components to Bit #5614
-
Hi colleagues! We want to share several React components in a simplest way (export/import) across projects in the company. One component among of them depends on some others. Trying to convert them to Bit-components I encountered a couple of issues.
`"teambit.dependencies/dependency-resolver": { "policy": {
bit tag custom/[email protected] --message "public release" - fails at the very last stage: "Generating preview" with a weird error: ModuleNotFoundError: Module not found: Error: I couldn't get rid of the error neither installing Typescript globally, nor locally. Our project does not use TS at all. So, I couldn't make "bit export" in order to publish my components to Bit's repo. Eventually, I managed to do that only by means of: bit tag --all 1.0.1 --force-deploy I.e. - tagging with ignoring errors. Maybe someone could advice how to investigate and resolve this build error further, please? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi, There are several things to unpack here, I'll try and go over all of them:
|
Beta Was this translation helpful? Give feedback.
Hi,
There are several things to unpack here, I'll try and go over all of them:
bit import
, or for Bit's capsules to operate correctly.pnpm
. If usingbit install
, you can have Bit useyarn
behind the scenes (just replace the entry inworkspace.jsonc
). Moreover, it's mainly about managing your.npmrc
file. If you have authentication there, it's ok. No need to re-authenticate with another client.