GoogleChromeLabs / GoogleChromeLabs/squoosh
"caniuse-lite is outdated" during "npm run build"
- Dominant language
- TypeScript
- Stars
- 25.9k
- Forks
- 2.2k
- PR merge metrics
- No merged PRs in 30d
Description
Browserslist: caniuse-lite is outdated. Please run next command `npm update caniuse-lite browserslist`
SyntaxError: Invalid regular expression: /\codecs\/: \ at end of pattern
at new RegExp ()
at module.exports (D:\NodeJs\node_global\node_modules\squoosh\webpack.config.js:175:9)
at process._tickCallback (internal/process/next_tick.js:68:7)
Contributor guide
Research direction
Start by running `npm run build` and inspect `webpack.config.js` around line 175, where the reported `RegExp` error occurs. Check whether updating `caniuse-lite` and `browserslist` changes the failure; done means the build completes without the outdated-data warning or invalid regular-expression error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- node.js, typescript, webpack
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 28/100