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.

Remove `@types/*` from dependencies

See original GitHub issue

Prerequisites

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:closed
  • Created a year ago
  • Reactions:1
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
jquensecommented, Apr 8, 2022

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

0reactions
kyletsangcommented, Apr 18, 2022

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.

Read more comments on GitHub >

github_iconTop 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 >

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