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

fix: string-width issue when running docker container #4808

Merged
merged 2 commits into from
Sep 21, 2023
Merged

Conversation

kwasniew
Copy link
Contributor

@kwasniew kwasniew commented Sep 21, 2023

About the changes

I run yarn install --production=true inside docker directory using yarn 1.22.19 (same as alpine version we use in docker).

I built a docker container, went inside it and checked the string-width version. It's 4.2.3 now (correct), previously it was 5.x.x (incorrect).

If we have a similar problem in future:

  • docker build . -t localbuild:local - pick whatever name you like
  • docker run -it localbuild:local /bin/sh - go inside the container
  • cat node_modules/string-width/package.json - check version if it matches your local node_modules version

Important files

Discussion points

@vercel
Copy link

vercel bot commented Sep 21, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

2 Ignored Deployments
Name Status Preview Comments Updated (UTC)
unleash-docs ⬜️ Ignored (Inspect) Visit Preview Sep 21, 2023 1:35pm
unleash-monorepo-frontend ⬜️ Ignored (Inspect) Visit Preview Sep 21, 2023 1:35pm

@kwasniew kwasniew changed the title fix: deps fix: string-width issue when running docker container Sep 21, 2023
Copy link
Contributor

@gardleopard gardleopard left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, great @kwasniew :)

@kwasniew kwasniew merged commit fc8ddbd into main Sep 21, 2023
8 checks passed
@kwasniew kwasniew deleted the test-docker-deps branch September 21, 2023 13:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

None yet

2 participants