Skip to content

Outdated version of string-width is causing the Docker image entrypoint loading to fail. #20065

@LaurentGoderre

Description

@LaurentGoderre

Issue Summary

The update to fix arm32 architecture (c2485af) introduce a regression in the way the Ghost package is launched. When running node index.js there is a module resolution error similar to this issue nrwl/nx#19249. I managed to solve the issue locally by adding "string-width": "4.2.3" to the resolutions section.

Here is the Docker test showing the error: https://github.com/docker-library/ghost/actions/runs/8756974313/job/24034646549

I would like to contribute this fix but I am not sure which package.json to use because the packaged one seems to be generated from the source ones.

Steps to Reproduce

There is probably an more streamlined reproducible but building the Docker image here then running it (https://github.com/docker-library/ghost/tree/master/5/debian)

docker build -t ghost .
docker run --rm ghost 

Ghost Version

5.82.3

Node.js Version

18., 20.

How did you install Ghost?

In Docker using the Ghost CLI

Database type

MySQL 5.7

Browser & OS version

No response

Relevant log / error output

No response

Code of Conduct

  • I agree to be friendly and polite to people in this repository

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug[triage] something behaving unexpectedly

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions