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

[BUG] devcontainer:hugo on apple m1 silicon dependencies error #46

Closed
usrbinkat opened this issue Feb 7, 2024 · 5 comments
Closed

[BUG] devcontainer:hugo on apple m1 silicon dependencies error #46

usrbinkat opened this issue Feb 7, 2024 · 5 comments
Assignees
Labels
kind/bug Some behavior is incorrect or out of spec resolution/fixed This issue was fixed size/S Estimated effort to complete (1-2 days).
Milestone

Comments

@usrbinkat
Copy link
Member

What happened?

Following the local devcontainer workflow on arm/m1 architecture results in stencil/node_modules/puppeteer error The chromium binary is not available for arm64

Example

Directory: /workspaces/pulumi-hugo/themes/default/theme/stencil/node_modules/puppeteer
Output:
The chromium binary is not available for arm64.
If you are on Ubuntu, you can install with: 

 sudo apt install chromium


 sudo apt install chromium-browser

/workspaces/pulumi-hugo/themes/default/theme/stencil/node_modules/puppeteer/lib/cjs/puppeteer/node/BrowserFetcher.js:115
                    throw new Error();
                    ^

Error
    at /workspaces/pulumi-hugo/themes/default/theme/stencil/node_modules/puppeteer/lib/cjs/puppeteer/node/BrowserFetcher.js:115:27
    at FSReqCallback.oncomplete (node:fs:201:21)



make: *** [Makefile:18: ensure] Error 1

Output of pulumi about

n/a

Additional context

n/a

Contributing

Vote on this issue by adding a 👍 reaction.
To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).

@usrbinkat usrbinkat added kind/bug Some behavior is incorrect or out of spec size/S Estimated effort to complete (1-2 days). labels Feb 7, 2024
@usrbinkat usrbinkat added this to the 0.100 milestone Feb 7, 2024
@usrbinkat usrbinkat self-assigned this Feb 7, 2024
@usrbinkat
Copy link
Member Author

Issue reproduced:

  • clone to local aarm64 architecture device
  • open vscode from local repo directory
  • reopen with vscode devcontainer
  • execute make ensure
  • observe error

image

@usrbinkat
Copy link
Member Author

Solution identified.

Add apt package chromium-browser at a cost of 130MB in size.

@usrbinkat
Copy link
Member Author

Issue confirmed as common puppeteer/puppeteer#6622

@usrbinkat
Copy link
Member Author

Resolved in pulumi/devcontainer commit cce6c09

image

@pulumi-bot pulumi-bot reopened this Feb 7, 2024
@pulumi-bot
Copy link

Cannot close issue:

  • does not have required labels: resolution/

Please fix these problems and try again.

@usrbinkat usrbinkat added the resolution/fixed This issue was fixed label Feb 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Some behavior is incorrect or out of spec resolution/fixed This issue was fixed size/S Estimated effort to complete (1-2 days).
Projects
None yet
Development

No branches or pull requests

2 participants