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

Install failing during Docker build #1162

Open
tom-carbontrail opened this issue Oct 4, 2023 · 0 comments
Open

Install failing during Docker build #1162

tom-carbontrail opened this issue Oct 4, 2023 · 0 comments

Comments

@tom-carbontrail
Copy link

Bug Report

Thanks for your awesome library.

Current Behavior

Starting recently (sorry, have tried to pinpoint when but this project has only been built intermittently over the past year), during the yarn install phase of my multi-stage docker build, I have started getting these errors which have prevented the build from succeeding, can you advise?

Could it be to do with the compilation phase of protobuf?

Command yarn install --frozen-lockfile. Have included some potential context around it but cannot tell if it's related or not:

[...]
2023-10-04T02:08:09.8273002Z #13 138.8 [4/4] Building fresh packages...
2023-10-04T02:08:10.1155109Z #13 139.1 info This package requires node-gyp, which is not currently installed. Yarn will attempt to automatically install it. If this fails, you can run "yarn global add node-gyp" to manually install it.
2023-10-04T02:08:10.2288873Z #13 139.2 info If you think this is a bug, please open a bug report with the information provided in "/usr/local/share/.config/yarn/global/yarn-error.log".
2023-10-04T02:08:10.2289954Z #13 139.2 info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.

2023-10-04T02:08:10.2291255Z #13 139.2 error An unexpected error occurred: "/app/node_modules/quirrel/node_modules/protobufjs: Cannot read properties of undefined (reading 'getOption')".
[...]

Expected behavior/code
The package installs as expected. Note I can install fine on my Mac using the same commands.

Environment

  • Quirrel version: 1.14.1
  • Node/npm version: Node 20 (also tried on 18), yarn install v1.22.19
  • Builder image node:20-alpine
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

1 participant