Skip to content

Doesn't error if missing @sanity/browserlist-config dependency #1397

@binoy14

Description

@binoy14

If you find a security vulnerability, do NOT open an issue. Email [email protected] instead.

Describe the bug

A clear and concise description of what the bug is.

If you have "browserslist": "extends @sanity/browserslist-config", in the package.json without actually using the dependency.

To Reproduce

Steps to reproduce the behavior:

  1. Add the above mentioned line to package.json without having the actual package in the dependencies
  2. Install eslint-plugin-react-compiler
  3. Add a failing case to a component
  4. Error is not shown in IDE but is shown in the CLI

Expected behavior

pkg-utils should error on missing dependency issue

Screenshots
If applicable, add screenshots to help explain your problem.

Which versions of Sanity are you using?

Run sanity versions in the terminal and copy-paste the result here.

What operating system are you using?

Which versions of Node.js / npm are you running?

Run npm -v && node -v in the terminal and copy-paste the result here.

Additional context

Add any other context about the problem here.

Security issue?

Any security issues should be submitted directly to [email protected]. In order to determine whether you are dealing with a security issue, ask yourself these two questions:

  • Can I access something that's not mine, or something I shouldn't have access to?
  • Can I disable something for other people? If the answer to either of those two questions are "yes", then you're probably dealing with a security issue. Note that even if you answer "no" to both questions, you may still be dealing with a security issue, so if you're unsure, just email us at [[email protected]](mailto:[email protected].

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions