Skip to content

Install failing during Docker build #1162

@tom-carbontrail

Description

@tom-carbontrail

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions