Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

select2-bootstrap-5-theme@npm:1.2.0 doesn't provide @popperjs/core (p36ae4), requested by bootstrap #67

Closed
thorewi opened this issue Apr 20, 2022 · 2 comments

Comments

@thorewi
Copy link

thorewi commented Apr 20, 2022

Hello,

when I install this package using yarn v3.2.0, I'm getting the error:

➤ YN0002: │ select2-bootstrap-5-theme@npm:1.2.0 doesn't provide @popperjs/core (p36ae4), requested by bootstrap

which is referenced here:

https://yarnpkg.com/advanced/error-codes#yn0002---missing_peer_dependency

Can you please fix it? Thank you.

@apalfrey
Copy link
Owner

apalfrey commented May 8, 2022

This is just saying it's missing a peer dependency, it's just a warning. As @popperjs/core is only used in Bootstrap's JS and this theme is only using the Bootstrap SCSS for styling, it's not necessary for the theme to install @popperjs/core for something it isn't even using.

If you need to use the Bootstrap JS files, you should be installing bootstrap and @popperjs/core in your own project.

Hope this helps

@apalfrey apalfrey closed this as completed May 8, 2022
@thorewi
Copy link
Author

thorewi commented May 8, 2022

Both @popperjs/core and bootstrap is installed in my project:

    "@popperjs/core": "^2.11.5",
    "bootstrap": "^5.1.3",

I had to add

packageExtensions:
  select2-bootstrap-5-theme@*:
    peerDependencies:
      "@popperjs/core": "*"
  adt-js-components@*:
    peerDependencies:
      "@popperjs/core": "*"

to .yarnrc.yml to fix the issue. So I'm still thinking the problem is not on my side.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants