Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update-db fails #110

Closed
rwb196884 opened this issue Mar 7, 2023 · 1 comment
Closed

update-db fails #110

rwb196884 opened this issue Mar 7, 2023 · 1 comment

Comments

@rwb196884
Copy link

PS > yarn run build
yarn run v1.22.19
$ react-scripts build
Creating an optimized production build...
Browserslist: caniuse-lite is outdated. Please run:
npx browserslist@latest --update-db
Compiled successfully.

File sizes after gzip:

  615.89 KB  build\static\js\2.489004bb.chunk.js
  44.42 KB   build\static\js\main.ee38daab.chunk.js
  6.85 KB    build\static\css\2.3670e0c2.chunk.css
  774 B      build\static\js\runtime-main.8c40394c.js

The project was built assuming it is hosted at /.
You can control this with the homepage field in your package.json.

The build folder is ready to be deployed.
You may serve it with a static server:

  yarn global add serve
  serve -s build

Find out more about deployment here:

  bit.ly/CRA-deploy

Done in 31.16s.
PS > npx browserslist@latest --update-db
npm WARN config global `--global`, `--local` are deprecated. Use `--location=global` instead.
C:\blah\client\node_modules\browserslist\update-db.js:49
    if (match[1]) return match[1]
             ^

TypeError: Cannot read properties of null (reading '1')
    at getCurrentVersion (C:\blah\client\node_modules\browserslist\update-db.js:49:14)
    at updateDB (C:\blah\client\node_modules\browserslist\update-db.js:119:17)
    at Object.<anonymous> (C:\blah\client\node_modules\browserslist\cli.js:40:3)
    at Module._compile (node:internal/modules/cjs/loader:1105:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1159:10)
    at Module.load (node:internal/modules/cjs/loader:981:32)
    at Function.Module._load (node:internal/modules/cjs/loader:822:12)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:77:12)
    at node:internal/main/run_main_module:17:47
PS >
@ai
Copy link
Member

ai commented Mar 7, 2023

Please open an issue in this repo https://github.com/browserslist/update-db

@ai ai closed this as completed Mar 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants