question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Move bootstrap to peerDependencies

See original GitHub issue

I think bootstrap should be in peerDependencies, so that bootstrap-vue-3 doesn’t install it’s own conflicting one in node_modules/bootstrap-vue-3/node_modules/bootstrap.

The instructions already say yarn add bootstrap bootstrap-vue-3

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:4
  • Comments:7

github_iconTop GitHub Comments

2reactions
Radouchcommented, Dec 14, 2021

I am not sure if I understand this topic correctly, but: I am trying to develop our own custom library with just few special components, based on Vue 3 + Bootstrap 5. As this library should be used in Vue 3 + Bootstrap 5 applications, any of its component does not import Bootstrap nor Bootstrap-Icons (I use Storybook for development, so Bootstrap is imported in stories, not in component itself, mimicking the real application inside which my component will be used). So the build size of my library is relatively small (~ tens of kBs).

Now I tried to incorporate bootstrap-vue-3 library to use its BTable component. Even if I import only BTable component with import { BTable } from "bootstrap-vue-3"; build size of my library increased to 1+ MB as BTable “injected” whole Bootstrap and especially Bootstrap Icons into the build.

It would be great if Bootstrap could be really externalized from bootstrap-vue-3.

1reaction
mariusacommented, Feb 9, 2022

Got it

Read more comments on GitHub >

github_iconTop Results From Across the Web

Declare bootstrap as a peer dependency (!29817) - GitLab.org
... moving bootstrap to the peerDependencies will help us to avoid conflicting versions of bootstrap between the gitlab-ui and gitlab-ce.
Read more >
1.7.0 moved jQuery to peerDependencies which is a breaking ...
Hm... I still consider moving to peerDependencies a breaking change as it requires changes in consumer code. It's up to you to decide...
Read more >
Webpack - Bootstrap
Bootstrap is dependent on jQuery and Popper, these are defined as peerDependencies , this means that you will have to make sure to...
Read more >
npm WARN bootstrap@4.2.1 requires a peer of jquery@1.9.1
npm WARN bootstrap@4.2.1 requires a peer of popper.js@^1.14.6 but none is installed. You must install peer dependencies yourself. I am using ...
Read more >
Difference between dependencies, devDependencies and ...
Peer Dependencies : In package.json file, there is an object called as peerDependencies and it consists of all the packages that are exactly ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found