AddressForAll / site-v2

New AddressForAll website, version 3 of attempts to make it better
Apache License 2.0
1 stars 0 forks source link

npm run build - problema #18

Closed crebollobr closed 2 years ago

crebollobr commented 2 years ago

Quando fui atualizar o site: git clone https://github.com/AddressForAll/site-v2.git npm install npm run build Esse ultimo gerou o erro:


pm2@addressforall:/opt/teste2.addressforall.org/site-v2$ npm run build

> site-v2@0.1.0 build
> react-scripts build

Creating an optimized production build...
Compiled with warnings.

src/components/Content/en/SectionContents/AboutUs.js
  Line 43:21:   img elements must have an alt prop, either with meaningful text, or an empty string for decorative images  jsx-a11y/alt-text
  Line 52:21:   img elements must have an alt prop, either with meaningful text, or an empty string for decorative images  jsx-a11y/alt-text
  Line 61:21:   img elements must have an alt prop, either with meaningful text, or an empty string for decorative images  jsx-a11y/alt-text
  Line 70:21:   img elements must have an alt prop, either with meaningful text, or an empty string for decorative images  jsx-a11y/alt-text
  Line 79:21:   img elements must have an alt prop, either with meaningful text, or an empty string for decorative images  jsx-a11y/alt-text
  Line 96:21:   img elements must have an alt prop, either with meaningful text, or an empty string for decorative images  jsx-a11y/alt-text
  Line 105:21:  img elements must have an alt prop, either with meaningful text, or an empty string for decorative images  jsx-a11y/alt-text
  Line 114:21:  img elements must have an alt prop, either with meaningful text, or an empty string for decorative images  jsx-a11y/alt-text
  Line 123:21:  img elements must have an alt prop, either with meaningful text, or an empty string for decorative images  jsx-a11y/alt-text

src/components/Content/en/SectionContents/Advertisment.js
  Line 16:17:  The href attribute requires a valid value to be accessible. Provide a valid, navigable address as the href value. If you cannot provide a valid href, but still need the element to resemble a link, use a button and change it with appropriate styles. Learn more: https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/blob/HEAD/docs/rules/anchor-is-valid.md  jsx-a11y/anchor-is-valid

src/components/Content/en/SectionContents/InstituteAFA.js
  Line 17:13:  The href attribute requires a valid value to be accessible. Provide a valid, navigable address as the href value. If you cannot provide a valid href, but still need the element to resemble a link, use a button and change it with appropriate styles. Learn more: https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/blob/HEAD/docs/rules/anchor-is-valid.md  jsx-a11y/anchor-is-valid

src/components/Content/pt/ConteudoSecao/InstitutoAFA.js
  Line 16:13:  The href attribute requires a valid value to be accessible. Provide a valid, navigable address as the href value. If you cannot provide a valid href, but still need the element to resemble a link, use a button and change it with appropriate styles. Learn more: https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/blob/HEAD/docs/rules/anchor-is-valid.md  jsx-a11y/anchor-is-valid

src/components/Content/pt/ConteudoSecao/Publicidade.js
  Line 3:8:  'Container' is defined but never used     no-unused-vars
  Line 4:8:  'RowContainer' is defined but never used  no-unused-vars

src/components/Content/pt/ConteudoSecao/QuemSomos.js
  Line 41:21:   img elements must have an alt prop, either with meaningful text, or an empty string for decorative images  jsx-a11y/alt-text
  Line 48:21:   img elements must have an alt prop, either with meaningful text, or an empty string for decorative images  jsx-a11y/alt-text
  Line 57:21:   img elements must have an alt prop, either with meaningful text, or an empty string for decorative images  jsx-a11y/alt-text
  Line 66:21:   img elements must have an alt prop, either with meaningful text, or an empty string for decorative images  jsx-a11y/alt-text
  Line 75:21:   img elements must have an alt prop, either with meaningful text, or an empty string for decorative images  jsx-a11y/alt-text
  Line 92:21:   img elements must have an alt prop, either with meaningful text, or an empty string for decorative images  jsx-a11y/alt-text
  Line 101:21:  img elements must have an alt prop, either with meaningful text, or an empty string for decorative images  jsx-a11y/alt-text
  Line 110:21:  img elements must have an alt prop, either with meaningful text, or an empty string for decorative images  jsx-a11y/alt-text
  Line 119:21:  img elements must have an alt prop, either with meaningful text, or an empty string for decorative images  jsx-a11y/alt-text

src/components/Content/pt/ConteudoSecao/RegioesAtendidas.js
  Line 3:8:  'Container' is defined but never used     no-unused-vars
  Line 5:8:  'RowContainer' is defined but never used  no-unused-vars

src/components/Content/pt/ConteudoSecao/SectionQuemSomos.js
  Line 2:8:  'Container' is defined but never used     no-unused-vars
  Line 3:8:  'RowContainer' is defined but never used  no-unused-vars

Search for the keywords to learn more about each warning.
To ignore, add // eslint-disable-next-line to the line before.

File sizes after gzip:

  75.65 kB  build/static/js/main.2127f7b1.js
  3.3 kB    build/static/css/main.f426d5cd.css

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:

  npm install -g serve
  serve -s build

Find out more about deployment here:

  https://cra.link/deployment

> site-v2@0.1.0 postbuild
> react-snap

Error: Failed to launch chrome!
/opt/teste2.addressforall.org/site-v2/node_modules/puppeteer/.local-chromium/linux-686378/chrome-linux/chrome: error while loading shared libraries: libXdamage.so.1: cannot open shared object file: No such file or directory

TROUBLESHOOTING: https://github.com/GoogleChrome/puppeteer/blob/master/docs/troubleshooting.md

    at onClose (/opt/teste2.addressforall.org/site-v2/node_modules/puppeteer/lib/Launcher.js:348:14)
    at Interface.<anonymous> (/opt/teste2.addressforall.org/site-v2/node_modules/puppeteer/lib/Launcher.js:337:50)
    at Interface.emit (node:events:538:35)
    at Interface.close (node:readline:586:8)
    at Socket.onend (node:readline:277:10)
    at Socket.emit (node:events:538:35)
    at endReadableNT (node:internal/streams/readable:1345:12)
    at processTicksAndRejections (node:internal/process/task_queues:83:21)
crebollobr commented 2 years ago

versão atual do site estático, não precisa de procedimento de build