Questions tagged [bit.dev]
Open-source cli tool for collaborating on isolated components (React, Angular, Vue, ...) across projects and repositories.
69
questions
-2
votes
1
answer
18
views
Can Bit.dev support a mix of React and Angular Microfrontends?
How can I leverage Bit.dev to construct Microfrontends from a Monolithic project, incorporating both React and Angular applications? Is it feasible to use Bit.dev for managing and sharing these ...
0
votes
2
answers
48
views
Bit compatible with Vue 2?
Is there a way to generate a component with Vue 2 using Bit? Right now, seems like creating a component comes with Vue 3 as a peerDependency (which is fine since Vue 2 is going to be out of support by ...
0
votes
1
answer
61
views
Failed when install bit in Windows
I went to install bit.dev and received the error below in the terminal
npx @teambit/bvm install
√ downloading version 1.2.7 in 10 minutes, 5.377 seconds
| extracting version 1.2.7 using child-process ...
1
vote
1
answer
45
views
Is there a way to chain Envs in Bit?
I currently have a React environment built: https://bit.cloud/enlear/dev/envs/react
It uses the following dependencies:
{
/**
* standardize your component dependencies.
* @see https://bit.dev/...
1
vote
1
answer
52
views
Installing dependencies for a Bit component that uses an env
I'm using several react components that uses a custom react env. Out of these for one of these components, I need to install a dependency package.
Do I need to install it at Env where it will be ...
0
votes
0
answers
20
views
Dynamic classname component in bit dev
I have a next JS project dependency with bit dev components with my organization. Can those components load tailwind classes from next js project with their own tailwind config?
I've tried with using ...
0
votes
0
answers
37
views
Challenges with Bit.dev Setup on Windows: Facing 'Module not found' & 'Version not installed' Errors Despite Troubleshooting Efforts. Need Assistance
I'm currently in the process of setting up Bit.dev on Windows, and I'm encountering a series of issues. Initially, I was receiving "module not found" errors. Despite adding the path manually,...
0
votes
0
answers
40
views
Efficient Component Management in React using Bit.dev
Suppose I have a React project with the following structure involving bit: I have a bit folder at the project's root level. Inside this bit folder, I initialize bit, creating a bit ecosystem.
I'm ...
0
votes
1
answer
72
views
Unusual Behavior: Tailwind CSS Integration with Bit.dev Components in React Project
I'm currently experiencing an issue with integrating Bit.dev components that utilize Tailwind CSS into my React project. Despite diligently following the steps outlined in the Bit.dev blog, I'm ...
0
votes
0
answers
46
views
Location where debug.log in Bit Builds
I'm wondering where I can find Debug.log when using Bit.dev on the Windows Platform.
I am getting an error while building and it's telling to at Debug.log for more details. Unfortunately, I can't find ...
0
votes
1
answer
117
views
Getting bvm: command not found
I've been using bvm to manage my bit versions for a while now, but now suddenly i'm getting bvm: command not found.
bit -v still gives me the correct output, so bit is still installed...
Tried running ...
0
votes
1
answer
144
views
How can I use Bit with Vitejs in React without getting 'defaultExports is not a function' error?
I am new to Bit. I tried creating a very simple component and push it to local bit server using create-react-app, it worked. But when I try to use the same component in a simple vitejs project, the ...
0
votes
0
answers
39
views
Bit cli tool is not working after clean install
bit cli tool is not working after clean installation, i don't understand how do people proceed with bit's tutorials if every command returns the same error: The system cannot find the path specified.
...
0
votes
2
answers
118
views
Modal component preview not properly shown in Bit.dev
I build a component using bit, and exported it to the localhost, and below is how the preview was shown.
Below is the image how it should appear
The expected behavior was showing the component under ...
0
votes
1
answer
422
views
Dynamic styles using tailwind JIT compiler not working bit src tailwind environment
I have couple of react components created in bit src sope with tailwind environment.(bit src , tailwind environment ).
Its working fine with following variations.
built in classes i.e. w-0 w-1 w-2 w-...
0
votes
1
answer
108
views
How to initialize bit.dev workspace with JavaScript
I want to create and publish components using bit.dev with JavaScript. But when initialize a new workspace using bit new react (react is the template), the react template is generated with typescript. ...
2
votes
1
answer
96
views
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 ...
1
vote
1
answer
277
views
How to install a private bit.dev package in a react project?
I have tried installing a public bit cloud package in a react project and it works.
yarn config set '@bit:registry' https://node.bit.dev
yarn add @bit/<scope-name>.<module-name>.<...
0
votes
0
answers
36
views
Legacy dependency error, how can I solve this error?
I get the following error when trying to import a MUI component into my workspace, does anyone know why? and if there is a way to use that component?
error: legacy dependency "mui-org.material-ui....
3
votes
1
answer
237
views
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....
2
votes
1
answer
286
views
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 ...
0
votes
0
answers
43
views
Is there any other way to add angular compilers to build bit components?
I have tried running the following command:
$ bit import bit.envs/compilers/angular --compiler
I get the following error (refer image)
1
vote
0
answers
133
views
How to add external styles to Bit dev application or components
Within bit.dev, how can we import external stylesheets into bit.dev as we have an external styleguide we would like to import into our components within bit.dev. We are only using lit-elements within ...
0
votes
0
answers
181
views
Bit.dev - components - How do you compile scss files on bit build, so bit exports with compiled css
Bit dev - components - How do you compile scss files on bit build, so we bit export with compiled css.
Currently we are building and exporting our bit components. On the npm install of a component, ...
0
votes
1
answer
510
views
How to install private npm package in bit.dev?
I'm try to install a private NPM package but is failing when using bit install.
I also tried using yarn install to add the package just to check if I have the right access and it works.
Here's the ...
0
votes
1
answer
95
views
Is there any other way to share react components across projects without using npm, rush and bit
I want to share react components across different projects. I tried rush but it is not working properly apart from that we can't use npm.
I tried rush.js but it is not working properly and we can't ...
0
votes
2
answers
253
views
Local Bit components repository
Is it possible to use Bit for a team without using paid 'Team' services on bit.cloud?
Basically we just want to use as a private components library and dependency manager, without using all those paid ...
0
votes
1
answer
126
views
Add global helper functions to bit.dev project
I am pretty happy with bit.dev. But there is one point I am not getting to work.
I need some global functions like formatting currency or saving same constants and enums, that I want to use from ...
1
vote
0
answers
62
views
White page after creating project und running `bit start`
I created a project with bit like in the tutorial (https://bit.dev/docs/getting-started/installing-bit/start-bit-workspace), but when I run bit start the page which opens in my browser is completely ...
1
vote
1
answer
206
views
Create an Product Page editor
What we want to do:
We have two projects:
A consumer focused frontend
A business focused dashboard
The frontend uses cool custom styling, while the dashboard is rather boring. The idea is that you ...
1
vote
0
answers
315
views
bit.dev with tailwind 3.0 and JIT
I made tailwind 2.0 work with bit.dev however to use tailwind classes we have to define them in tailwind.config.js. Is there a workaround where purge is working as it should, or is there a way to make ...
1
vote
1
answer
258
views
Delete older component version from bit
I know, from github we can delete older version.
Is there option to delete older version of components created using bit.dev?
if yes, can you guide me through it? How older version can be deleted?
1
vote
1
answer
543
views
Adding localhost as a remote scope to my Bit.dev project returns a permission denied error
I'd like to add a local scope server as a remote scope to my project. However, when I run bit remote add "http://localhost:3001" I get a error: permission to scope "" (http://...
1
vote
1
answer
128
views
bit.dev cli test snapshots not updating
bit.dev CLI doesn't seems to honor -u flag while running bit test <component-pattern>. I have snapshots generated for component already and test fails with
4 snapshots failed from 1 test suite. ...
1
vote
0
answers
153
views
Error when following instructions on "Hosting scopes"
I was trying to follow the instructions on hosting scopes (https://bit.dev/docs/scope/running-a-scope-server).
Commands entered:
docker run -it -p 4000:3000 bitcli/bit-server:latest
http://localhost:...
3
votes
1
answer
377
views
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 ...
1
vote
0
answers
787
views
Self hosting components with bit.dev, error: Cannot find module '@pmmmwh/react-refresh-webpack-plugin'
I am trying to self host components using bit.dev by following this article https://github.com/teambit/bit/discussions/4707
When I run bit start and I get this error:
Cannot find module '@pmmmwh/react-...
1
vote
2
answers
493
views
Remove component specific version from bit.dev
While developing a component sometimes we push the changes to the scope (bit export) so we can import and test the changes on other projects, these versions are useless (e.g: 0.0.0-test.1), so we ...
0
votes
1
answer
400
views
Using bit.dev and react-native env, the build is giving error
I created two components in react-native, they are working fine in my dev environment, when I use bit compile and bit status, everything remains on track, no errors. But when i use bit build or bit ...
3
votes
3
answers
11k
views
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 } ...
0
votes
0
answers
788
views
Bit.dev component upload failing
Original title: Bit.dev installing components from private scopes
EDIT2: Ok it's starting to be clear that the problem is with bit.dev, even trivial components with no dependencies are 'processing' ...
1
vote
1
answer
1k
views
How to update a component built with Bit.dev in multiple projects?
I have a project A and project B which both have installed (via npm) the same component X.
To use the updated component in both projects I have to manually go inside of each projects and execute yarn ...
1
vote
1
answer
737
views
Wrapping bit.dev components with a ThemeProvider
I want to start using bit.dev to manage React components across multiple apps. Each app is wrapped with a Theme provider.
The bit.dev playground is failing to render the components since they are ...
0
votes
2
answers
493
views
I cannot bit import with --compiler option
I’m having a problem.I want to import typescript compiler.
then I tried this command: bit import bit.envs/compilers/typescript --compiler
But it doesn’t worked. This is the error message:
bit import [...
1
vote
0
answers
153
views
Storing raw Ionic (Angular) components on bit.dev
The problem:
I would like to use Ionic (for Angular framework) components on bit.dev platform in a raw form.
There are couple of problems I faced trying to do that.
Ionic has single global ngModule ...
0
votes
0
answers
204
views
Importing Angular compiler to Bit results in dependency tree issues
I am trying to implement one commons project where I keep several reusable Angular components and services, that I want to use for several other projects. I want to use Bit to share components (or ...
0
votes
1
answer
316
views
What’s the bit.dev equivalent of forking a repo and submitting a PR?
What’s the bit.dev equivalent of forking a repo and submitting a PR? I need to make a small change to https://bit.dev/mui-org/material-ui/swipeable-drawer. I can see that it is MIT licensed, and they ...
1
vote
1
answer
361
views
Bit build throws an error if a component uses external library like Material UI?
My use case:
I have a Button component with Material UI. I want to export that component to bit component, but while compiling the bit build, I get an error on Material UI modules:
How do I isolate ...
0
votes
0
answers
209
views
How disable tsconfig.json autogeneration?
I have bit.dev component in my node modules which is written in typescript. And I need to remove node modules in tsconfig exclude array
4
votes
2
answers
2k
views
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?