Remove `@types/*` from dependencies
See original GitHub issuePrerequisites
- I am using the correct version of React-Bootstrap for my version of Bootstrap
- I have searched for duplicate or closed issues
- I have read the contributing guidelines
Describe the bug
@types/*
being added in dependencies
instead of devDependencies
.
Expected behavior
@types/*
should be added in devDependencies
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
Issue Analytics
- State:
- Created a year ago
- Reactions:1
- Comments:6 (3 by maintainers)
Top Results From Across the Web
Uninstalling packages and dependencies - npm Docs
To remove a package from your node_modules directory, on the command line, use the uninstall command. Include the scope if the package is...
Read more >Remove-CMDeploymentTypeDependency - Microsoft Learn
This command removes a deployment type dependency. Parameters. -Confirm. Prompts you for confirmation before running the cmdlet. Type: SwitchParameter.
Read more >Removing Dependencies: One Weird Trick for Increasing ...
Dependencies sometimes stop being maintained. This is a problem when, for example, Apple releases new versions of the Swift language and of iOS....
Read more >node.js - Remove npm packages both from dependencies and ...
we can remove package from the project. But if it is under devDependencies , it will be ignored. Is it possible to remove...
Read more >@types/lodash.remove | Yarn - Package Manager
Fast, reliable, and secure dependency management. ... This package contains type definitions for lodash.remove (https://lodash.com).
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
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
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.