Questions tagged [bit.dev]

Open-source cli tool for collaborating on isolated components (React, Angular, Vue, ...) across projects and repositories.

65 questions
4
votes
2 answers

How to use bit.dev with tailwindcss

I want to build a component library on top of tailwindcss. Therefore I want to encapsulate my components with bit.dev. Is this possible, or are these two competitive approaches?
L. Heider
  • 1,579
  • 1
  • 14
  • 31
4
votes
1 answer

Is it possible to use Bit without a bit.dev account?

Is it possible to set up bit as a local server, without a bit.dev account, for internal processing? I know that you might not have the same features -- bit's FAQ page says "Unlike the Bit CLI, the bit.dev server is a proprietary tool owned by Bit.…
3
votes
1 answer

Bit.dev (Bit Harmony): `bit tag` command fails to complete

I was exporting my component to Bit.dev, when I got stuck at the bit tag --message command, with the error message: Failed task 1: "teambit.pkg/pkg:PackComponents" of env "teambit.harmony/node" I have already ran the previous commands: bit link…
Jarrett
  • 486
  • 7
  • 13
3
votes
1 answer

Bit.cloud not showing my components tests

Bit.cloud is not showing my tests, but they are right there, and they show when running bit start locally. Sadly, the link on the no tests page directing me to learn how to add tests goes to a 404. I the workspace is public, have a look and see…
Matthew Peel
  • 357
  • 4
  • 15
3
votes
3 answers

React App: Cannot find module 'react-dom/client' or its corresponding type declarations

I'm currently experiencing this error and I'm not really sure how to fix it. I've been trying to merge a project with components stored in bit.dev. import React from 'react'; import { createRoot } from 'react-dom/client'; // Cannot find module…
rubenf01
  • 134
  • 1
  • 8
3
votes
1 answer

How do I effectively npm link when using bit.dev?

I have two git repos; one is a component library, containing multiple components which are all individually exported to bit.dev two is a next/react app that uses the components from the library My folders are roughly; component-library |-…
Abby
  • 3,169
  • 1
  • 21
  • 40
3
votes
0 answers

How to add a ThemeProvider to bit.dev

I'm starting a new UI-library with bit.dev However I can't find any information or docs on how to add a "global" Provider to these compoonents? I have several apps I want to use this UI-library with different theme colors. I don't want to hardcode…
MLyck
  • 4,959
  • 13
  • 43
  • 74
3
votes
2 answers

React Bit Dev module is saying 404

I am trying to use following bit.dev community reusable component ( semantic-ui-react table ) in my application, link I am trying is as below: https://bit.dev/semantic-org/semantic-ui-react/table?example=5c920bc8c634f0001a931879 We can use same in…
Pramod S. Nikam
  • 4,271
  • 4
  • 38
  • 62
2
votes
1 answer

How to use utils.js shared module in Bit components?

We are trying to build a shared React component library in Bit and I'm wondering how others have handled util modules that are called from a component but are not visually rendered. Bit refuses to build, saying that the util module is not a jsx (it…
2
votes
1 answer

How to undo what was executed from an npx command package?

I installed bit on my Ubuntu 22.04 machine using npx @teambit/bvm install, which created an executable in my HOME/bin folder and an entry on my .zshrc Now, I would like to know if anything else was installed, and how can I completely remove Bit from…
nicoramirezdev
  • 466
  • 3
  • 14
2
votes
2 answers

Can't resolve 'react/jsx-runtime' on Bit.dev

Hi Guys I'm trying to export a component with bit.dev but after several attempts I always get this error on the preview of the component and importing the component I always get error. Module not found: Can't resolve 'react/jsx-runtime' in…
Giovanni Giampaolo
  • 465
  • 1
  • 9
  • 17
2
votes
1 answer

Expected T, got Object in Vue-Prop of custom Object-Type

Description Hello there, I would like to share my Vue-components using bit.dev. I got a Vue-component like this: