Skip to content

browserslist package not detected with yarn #47

Open
@BoGnY

Description

I've tried to run yarn dlx update-browserslist-db@latest but I get the following error:

➤ YN0000: · Yarn 4.5.3
➤ YN0000: ┌ Resolution step
➤ YN0085: │ + update-browserslist-db@npm:1.1.1, escalade@npm:3.2.0, picocolors@npm:1.1.1
➤ YN0000: └ Completed in 0s 258ms
➤ YN0000: ┌ Post-resolution validation
➤ YN0002: │ root-workspace-0b6124@workspace:. doesn't provide browserslist (pa02ec), requested by update-browserslist-db.
➤ YN0086: │ Some peer dependencies are incorrectly met by your project; run yarn explain peer-requirements <hash> for details, where <hash> is the six-letter p-prefixed code.
➤ YN0000: └ Completed
➤ YN0000: ┌ Fetch step
➤ YN0013: │ 3 packages were added to the project (+ 37.6 KiB).
➤ YN0000: └ Completed
➤ YN0000: ┌ Link step
➤ YN0000: └ Completed
➤ YN0000: · Done with warnings in 0s 311ms

Latest version:     1.0.30001690
Updating caniuse-lite version
$ yarn up -R caniuse-lite
caniuse-lite has been successfully updated

Error: update-browserslist-db tried to access browserslist (a peer dependency) but it isn't provided by your application; this makes the require call ambiguous and unsound.

Required package: browserslist
Required by: update-browserslist-db@virtual:dc3fc578bfa5e06182a4d2be39ede0bc5b74940b1ffe0d70c26892ab140a4699787750fba175dc306292e80b4aa2c8c5f68c2a821e69b2c37e360c0dff36ff66#npm:1.1.1 (via C:\Users\Luca\AppData\Local\Temp\xfs-ddf9ab0a\dlx-21912\.yarn\__virtual__\update-browserslist-db-virtual-06cd985fe4\0\cache\update-browserslist-db-npm-1.1.1-16e34017b1-536a2979ad.zip\node_modules\update-browserslist-db\)
Ancestor breaking the chain: root-workspace-0b6124@workspace:.


Require stack:
- C:\Users\Luca\AppData\Local\Temp\xfs-ddf9ab0a\dlx-21912\.yarn\__virtual__\update-browserslist-db-virtual-06cd985fe4\0\cache\update-browserslist-db-npm-1.1.1-16e34017b1-536a2979ad.zip\node_modules\update-browserslist-db\index.js 
- C:\Users\Luca\AppData\Local\Temp\xfs-ddf9ab0a\dlx-21912\.yarn\__virtual__\update-browserslist-db-virtual-06cd985fe4\0\cache\update-browserslist-db-npm-1.1.1-16e34017b1-536a2979ad.zip\node_modules\update-browserslist-db\cli.js   
    at require$$0.Module._resolveFilename (C:\Users\Luca\AppData\Local\Temp\xfs-ddf9ab0a\dlx-21912\.pnp.cjs:5676:13)
    at Module._load (node:internal/modules/cjs/loader:984:27)
    at require$$0.Module._load (C:\Users\Luca\AppData\Local\Temp\xfs-ddf9ab0a\dlx-21912\.pnp.cjs:5567:31)
    at Module.require (node:internal/modules/cjs/loader:1231:19)
    at require (node:internal/modules/helpers:179:18)
    at getBrowsers (C:\Users\Luca\AppData\Local\Temp\xfs-ddf9ab0a\dlx-21912\.yarn\__virtual__\update-browserslist-db-virtual-06cd985fe4\0\cache\update-browserslist-db-npm-1.1.1-16e34017b1-536a2979ad.zip\node_modules\update-browserslist-db\index.js:90:22)
    at updateDB (C:\Users\Luca\AppData\Local\Temp\xfs-ddf9ab0a\dlx-21912\.yarn\__virtual__\update-browserslist-db-virtual-06cd985fe4\0\cache\update-browserslist-db-npm-1.1.1-16e34017b1-536a2979ad.zip\node_modules\update-browserslist-db\index.js:287:15)
    at Object.<anonymous> (C:\Users\Luca\AppData\Local\Temp\xfs-ddf9ab0a\dlx-21912\.yarn\__virtual__\update-browserslist-db-virtual-06cd985fe4\0\cache\update-browserslist-db-npm-1.1.1-16e34017b1-536a2979ad.zip\node_modules\update-browserslist-db\cli.js:34:5)
    at Module._compile (node:internal/modules/cjs/loader:1369:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1427:10)

Problem with browser list retrieval.
Target browser changes won’t be shown.

I've tried to add browserslist to package.json (previously not included but only required by autoprefixer) but nothing changes

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    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