Questions tagged [bit.dev]
Open-source cli tool for collaborating on isolated components (React, Angular, Vue, ...) across projects and repositories.
35
questions
0
votes
1
answer
37
views
+50
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
0
answers
13
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
26
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 ...
1
vote
3
answers
912
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
205
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
316
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 ...
0
votes
0
answers
59
views
Bit react-typescript compiler with material-ui
I started playing around with microservices/microfrontends and started using Bit.dev
Bit provides a react-typescript compiler. Using that I tried to compile a piece of code from the Material-UI GitHub ...
0
votes
1
answer
282
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
0
answers
19
views
How to implement React Enzyme testing in Bit Harmony
I'm trying to move an existing react library to Bit Harmony. The original library used Enzyme for testing. When I try to modify the demo my-react environment to use enzyme instead I hit an issue with ...
0
votes
2
answers
161
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
88
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
103
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
122
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
110
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
83
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
3
votes
2
answers
1k
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?
2
votes
2
answers
4k
views
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 ...
2
votes
1
answer
363
views
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 ...
2
votes
1
answer
309
views
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, ...
1
vote
2
answers
305
views
React is not defined when install one exported component on bit.dev
I have followed the official tutorial of Bit for React. And the result is here: https://bit.dev/vibe/react-admin-components/action-buttons
The problem is, I can not install the above component in ...
2
votes
1
answer
183
views
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:
<template>
...
</template>
<script>
import CustomItem from &...
2
votes
0
answers
353
views
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-...
0
votes
1
answer
159
views
Bit does not import the react compiler
I am using a create-react-app scaffoldin tool, and I want to upload and track some components into bit.dev.
the problem comes when I try to follow the following tutorial:
https://docs.bit.dev/docs/...
2
votes
2
answers
2k
views
How to use with bit.dev with global scss files that my components use?
I got a design system in my current app... and they all sit in a styles folder.
Now, I also have a components folders that includes a "designSystem" folder that contains all my reusable components ...
0
votes
1
answer
263
views
Can I easily "eject" an installed Bit component into the local project to remove the package dependancy?
We have a couple of use cases here and there where we are using Bit to pass around our React components we use a lot in our projects. Occasionally we need to hand off the code base to the client per ...
1
vote
0
answers
305
views
How to share custom-styled Ionic components in bit.dev
Could you please help with the following?
We use Ionic with React in a team having 2 distinct projects.
We need to style these Ionic components a little differently.
I need to share these a-little-...
0
votes
1
answer
279
views
Global context for bit-tracked React component
I'm developing a React component library for a web site. For local development I use Storybook. I think bit can be a good tool (better than npm link) for exporting library components and import them ...
1
vote
1
answer
684
views
Cannot import anything from bit.dev to my React project
I have a React project; I am trying to import a component from bit.dev, but it does not work for some reason.
I have installed the package on my terminal using:
bit import nexxtway.react-rainbow/...
0
votes
1
answer
268
views
Gatsby deployment to Netlify failing using bit.dev remote server
I'm building my first site on Netlify. I haven't changed my gatsby site in weeks. When I tried to deploy live, I'm getting build errors.
I'm getting the following issues when deploying. Both gatsby ...
0
votes
2
answers
755
views
Bit.dev unable to add 2 components with the same ID
To manage my severals react components I decide to use bit. Then I add a component loginForm that is a directory with this structure:
├── loginForm
│ ├── loginForm.scss
│ └── loginForm.tsx
I use ...
1
vote
0
answers
275
views
cant import a js bit component into a ts project - `Could not find a declaration file for module`
when trying to npm install a javascript component into a typescript project, I get a typescript error for missing the d.ts file or a @types component:
TypeScript error in /Users/oded/code/base-...
3
votes
2
answers
2k
views
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?...
1
vote
1
answer
309
views
bit.dev with react less styles
I wanna use bit.dev as my react shared components store but I've stacked with compiling less files to css. I'm using create-react-app with customize-cra (to override CRA config without ejecting).
...
0
votes
2
answers
652
views
bit.dev workflow without dedicated team for a shared library and with code review before publishing
looking for workflow solution. We need something like ad-hoc sharing workflow https://docs.bit.dev/docs/workflows/projects with one addition - before the component publishing could happen only after ...
2
votes
1
answer
146
views
How do I create typescript components in a javascript project using bit?
I want to create a few typescript components in an existing javascript project. My new components will all be placed in a single folder and will use the react-typescript compiler as opposed to the ...