Closed davidesigner closed 2 months ago
I use npm and I don't have browserlist in my lock file because it was not required by the previous version.
Yes we have a monorepo that contains multiple js projects (yarn & npm).
Why do you need caniuse-lite
if you don’t have Browserslist?
Very strange, we call browserslist
in try-catch
and ready for error from require()
.
What is Node.js version?
Sorry I have browserlist
in my package-lock.json because it's a dependency of autoprefixer
.
The package is installed in my node_modules
:
Node: v20.12.0
Seems like update-browserslist-db
doesn’t see browserslist
because it was run from temporary dir.
But I have no idea why this code is not working https://github.com/browserslist/update-db/blob/main/index.js#L274-L276
Do you have any way to reproduce the problem and debug it?
You can do that: npx create-remix@latest --template remix-run/indie-stack
to install a new Remix project that have the problem:
Then, just go to the project repository and run: npx update-browserslist-db@latest
.
Environment:
It was not an error (the exit code was 0
), just a warning.
But I improve the text https://github.com/browserslist/update-db/commit/1f3ab06d79cfee9d8944a9379f1d15dad9a83a28
Hi there,
Since the new release (1.0.14), my team and myself have this error when we run
npx update-browserslist-db@latest
.