Comments (2)
Hi, to have a single instance of a dependency in your application it is recommended to set that dependency as a peerDependency
, not as a dependency
. This way the consuming app will know it should not install it, but instead resolve it from the root of node_modules.
from bit.
hi @itaymendel, appreciate your help on looking into this.
Despite setting it as a peerDependency
in my basic repository, I am still encountering the same issue. Within my barebone repository, I've only created one styled-component, and there isn't any consuming application, which is causing confusion regarding the error.
from bit.
Related Issues (20)
- Bit Installation error:- reason: self signed certificate in certificate chain HOT 3
- [WORKSPACE] How to move my package.json/ lock deps to bit workspace ? HOT 1
- [WORKSPACE] Monorepo packages/apps dependencies managements HOT 3
- [WORKSPACE] Bit status how to not be aware of some import s HOT 4
- Very slow to install bit HOT 3
- Not possible to add remote bit scope HOT 2
- [WORKSPACE] How can we install dependencies needed only HOT 8
- New workspace env not found error HOT 2
- Multiple issues when trying to tag many components HOT 2
- next/image error - React.jsx: type is invalid -- expected a string (for built-in components) or a class/function but got: object HOT 1
- Inconsistent typescript rules between custom environment compiler and build task HOT 8
- Custom Vite config for Vue App HOT 1
- Where to download file bin to install ? HOT 3
- Cannot find module '../node_modules/@teambit/bit/dist/app' HOT 4
- Components marked as removed still present in remote workspace
- Deployed self hosted Docker, but access failed. HOT 1
- Can I use vite for ui component build and preview HOT 3
- Unable to import the following component(s): subhorg.testscope/envs/my-vue-env, subhorg.testscope/envs/my-vue-wrapper, subhorg.testscope/home-page. the remote scope "subhorg.testscope" was not found HOT 1
- Automating components release into a remote scope hoisted by me HOT 2
- bit build Failing - Cannot write file because it would overwrite input file. HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bit.