github / github/paste-markdown

Update devcontainer with chromium dependencies

Aberta
#52 0 comentários 2 reações 0 responsáveis Ver no GitHub
Linguagem predominante
JavaScript
Estrelas
234
Forks
47
Merge médio
1d 12h
PRs com merge (30d)
5

Descrição

When attempting to `npm install && npm run test` in a fresh codespace, we initially see an error related to a missing shared library:
```
26 04 2022 14:32:23.081:ERROR [launcher]: Cannot start ChromeHeadless
/workspaces/paste-markdown/node_modules/chromium/lib/chromium/chrome-linux/chrome: error while loading shared libraries: libnss3.so: cannot open shared object file: No such file or directory
```

Running
```
ldd /workspaces/paste-markdown/node_modules/chromium/lib/chromium/chrome-linux/chrome | grep not
```
shows a list of libraries similar to that in https://github.com/dtolstyi/node-chromium/issues/52#issuecomment-1028727251

```
libnss3.so => not found
libnssutil3.so => not found
libsmime3.so => not found
libnspr4.so => not found
libatk-1.0.so.0 => not found
libatk-bridge-2.0.so.0 => not found
libcups.so.2 => not found
libdrm.so.2 => not found
libxkbcommon.so.0 => not found
libXcomposite.so.1 => not found
libXdamage.so.1 => not found
libXfixes.so.3 => not found
libXrandr.so.2 => not found
libgbm.so.1 => not found
libpango-1.0.so.0 => not found
libcairo.so.2 => not found
libasound.so.2 => not found
libatspi.so.0 => not found
```
^^ This correlates pretty well to https://github.com/puppeteer/puppeteer/blob/main/docs/troubleshooting.md#chrome-headless-doesnt-launch-on-unix

Guia de contribuição

Abrir o guia de contribuição

Direção de pesquisa

Inspecione a configuração de devcontainer do repositório e reproduza a falha com `npm install && npm run test` em um Codespace novo. Use `ldd` no binário do Chromium para verificar as bibliotecas ausentes listadas na issue. Está concluído quando o ChromeHeadless iniciar com sucesso e o comando de teste não relatar mais bibliotecas compartilhadas ausentes.

Escrita pelo modelo de indexação a partir do texto da issue.

Avaliação

Stack de tecnologia
javascript, node.js
Domínio
devops, testing-qa
Tipo de issue
Bug
Dificuldade
2/5
Tempo estimado
1-3 horas
Status de atividade
Estagnada
Clareza
Razoavelmente clara
Facilidade para iniciantes
45/100

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.