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
Remove @types/*
from dependencies
#6299
Comments
@types/react
from dependencies@types/*
from dependencies
Types are supposed to be in dependencies because they need to be installed when some one installs the package. Other wise typescript will not be able to correctly typecheck when you use react-bootstap |
@jquense At least we can move it to |
The react types should've been deduped if you already have it in declared in your project package.json? It shouldn't have installed a copy of the react 18 types. Can you try this command in your project? |
@kyletsang @jquense This is the result of |
related: facebook/react#24304 (comment)
here's how MUI does it cc @kyletsang |
Optional peer deps is the correct approach. I think we've tried adding this in the past but most people were still on versions of npm that doesn't support this. It's been long enough now, so I've opened #6303 to properly clean this up. |
Prerequisites
Describe the bug
@types/*
being added independencies
instead ofdevDependencies
.Expected behavior
@types/*
should be added indevDependencies
To Reproduce
No response
Reproducible Example
There are no steps to reproduce it.
Screenshots
No response
What operating system(s) are you seeing the problem on?
No response
What browser(s) are you seeing the problem on?
No response
What version of React-Bootstrap are you using?
2.2.2
What version of Bootstrap are you using?
5.1.3
Additional context
No response
The text was updated successfully, but these errors were encountered: