Open
Description
In a Turborepo :
I got the notification when I ran pnpm run dev --filter ProjectName
Browserslist: caniuse-lite is outdated. Please run:
npx update-browserslist-db@latest
Why you should do it regularly: https://github.com/browserslist/update-db#readme
I ran
running npx update-browserslist-db@latest
- It was not working in the project directory (not detecting pnpm.lockfile)
- It was working in the root dir
But it:
- Changed all the versions in the pnpm lockfile of Node (was 18, went to 20, even if I specify 18 in an nvmrc file)
- Changed versions of other dependencies (Vite, Svelte ts-node)
- Did not change the behavior of the notification afterwards : I still had it
At the end, I had a broken project
The behavior of "update-browserslist-db@latest" should be strictly limited to its purpuse : updating caniuse-lite/Browserslist and nothing else
Note : I had the notification because I had
autoprefixer : 10.4.14
In pnpm lock :
/[email protected]([email protected]):
resolution: {integrity: sha512-qnCL5jzkNUmKVhZoENp1mJiGNPcsJCs1aaRmURmeJGES23Z/ajaln+EPTD+rBeNkSryI+2WTdW+lwcVdOikrpA==}
engines: {node: ^10 || ^12 || >=14.0}
peerDependencies:
postcss: ^8.2.15
dependencies:
browserslist: 4.21.7
postcss: 8.4.24
postcss-value-parser: 4.2.0
dev: false
/[email protected]([email protected]):
resolution: {integrity: sha512-FQzyfOsTlwVzjHxKEqRIAdJx9niO6VCBCoEwax/VLSoQF29ggECcPuBqUMZ+u8jCZOPSy8b8/8KnuFbp0SaFZQ==}
engines: {node: ^10 || ^12 || >=14}
hasBin: true
peerDependencies:
postcss: ^8.1.0
dependencies:
browserslist: 4.21.7
caniuse-lite: 1.0.30001492
fraction.js: 4.2.0
normalize-range: 0.1.2
picocolors: 1.0.0
postcss: 8.4.24
postcss-value-parser: 4.2.0
dev: false
After manual update to 10.4.16 in package.json I had :
/[email protected]([email protected]):
resolution: {integrity: sha512-7vd3UC6xKp0HLfua5IjZlcXvGAGy7cBAXTg2lyQ/8WpNhd6SiZ8Be+xm3FyBSYJx5GKcpRCzBh7RH4/0dnY+uQ==}
engines: {node: ^10 || ^12 || >=14}
hasBin: true
peerDependencies:
postcss: ^8.1.0
dependencies:
browserslist: 4.22.1
caniuse-lite: 1.0.30001547
fraction.js: 4.3.7
normalize-range: 0.1.2
picocolors: 1.0.0
postcss: 8.4.24
postcss-value-parser: 4.2.0
dev: false
Metadata
Assignees
Labels
No labels
Activity