Questions tagged [bit-src]

BitSrc is a library used to share front-end components among applications using NPM. Use this tag for any questions regarding this library.

Useful links

12 questions
2
votes
2 answers

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 that I want to share across various apps. The…
james emanon
  • 11,185
  • 11
  • 56
  • 97
2
votes
2 answers

Bitsrc: Typescript transpiler creates references to module.js.map

I've been trying to use Bitsrc to share front-end components throughout multiple applications. I'm able to create the components and export them to bitsrc, however when trying to import them and use them I run into errors. I've set up a new aurelia…
Jesse
  • 3,522
  • 6
  • 25
  • 40
1
vote
1 answer

Can I use bit-src to collect components from different React's UI framework

I need to make a bit-src place that hold my React components from different React UI framework, so I found that bit can make it easy, however how can I push React UI's components from many React UI into bit.into bit-src
Mustafa Alfar
  • 160
  • 1
  • 5
  • 16
1
vote
1 answer

How do I include node modules in my tsconfig?

I have some raw angular typescript components that I've put into a private NPM module to share across projects. I import my components as I normally would with any other npm library but when I try and serve my app I get…
Justin Young
  • 2,393
  • 3
  • 36
  • 62
1
vote
1 answer

Bitsrc eject component if there is no update to export

I'm using Bitsrc.io to manage shared components. Sometimes it happens that I import a remote component which adds the physical files to my project. I then want to eject the module so that it is managed by npm again. However I haven't made any…
Patrick Geyer
  • 1,515
  • 13
  • 30
1
vote
1 answer

using Bit (bitsrc.io) and putting the right files in .gitignore

What files generated by Bit are clear to be included in .gitignore? What are the best practices regarding using Bit and Git combined?
Jaap Weijland
  • 3,146
  • 5
  • 23
  • 31
1
vote
1 answer

How to make bit ignore a dependency file?

We have a current ReactJS project and we build a custom grid, input, error handler, etc for it. now we start a new project and we want to share our components code between projects. we do some research and find bit platform bitsrc.io so pleasant and…
javad bat
  • 4,236
  • 6
  • 26
  • 44
0
votes
0 answers

Keep getting error 400 for bit src in local server

I am new to Bit src, I am trying to create component library. For that I have created one workspace and few components. when I run bit start, Getting this Response not successful: Received status code 400 error again and again. It seems local…
Dhruvin modi
  • 613
  • 1
  • 8
  • 13
0
votes
1 answer

Read a scss file into a variable so I can loop thru it

So, in my Storybook project, I am bringing in a bitstrc style sheet that is a ".scss" file. It works fine. The issue comes into play cause I want to iterate over it and display color swatches. Anyone know how this is done? Right now, by current…
james emanon
  • 11,185
  • 11
  • 56
  • 97
0
votes
2 answers

How to import simple bit-src component into projects' /src folder?

I'm trying bit-src (or should I call it bit.dev?) for the first time... I have two files - a .ts with just 1 dependency and a .md with its docs - which I use in many projects, which I want to turn into a bit component. So, I find these two files in…
Tom
  • 17,103
  • 8
  • 67
  • 75
0
votes
0 answers

Bitsrc: Error: Unknown object type "window" when tagging a component

I get the mentioned error when I try to tag a component and I don't know how to diagnose the problem. Can anyone point me in the right direction?
Grant
  • 219
  • 2
  • 4
0
votes
3 answers

bit-src didn't show the style of react bootstrap

I've made a component (button) with CRA and react-bootstrap, and I exported it into bit-src, the component has rendered without its styling, however I've tried to push it with pure CSS and the component has rendered with its styling, so is…
Mustafa Alfar
  • 160
  • 1
  • 5
  • 16