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

Issues with Node 22.5.0 images #2119

Closed
sneakycrow opened this issue Jul 18, 2024 · 8 comments
Closed

Issues with Node 22.5.0 images #2119

sneakycrow opened this issue Jul 18, 2024 · 8 comments

Comments

@sneakycrow
Copy link

Environment

  • Platform: macOS (M1) and Ubuntu (x86)
  • Docker Version: 24.0.6
  • Node.js Version: 22
  • Image Tag: 22

Expected Behavior

Using the node image as a base, installing packages and running build creates a running docker image

Current Behavior

Build fails due to unable to resolve module. Installing the module manually, and globally, before running yarn build causes the same problem. Removing the module just causes the follow up module to be unable to resolve

Here's some build logs of it failing

Additional Information

Here's a few things I tried that did not seem to help:

  • Removing the problem module. This just causes the very next module to be called to fail for the same reason.
  • Switching out yarn for npm
@tb102122
Copy link

the same issue on node:latest

@kunalnanda
Copy link

For me, I had to go back to node:22-alpine3.18 as node:22-alpine was also failing for me.

@alvesduarte97
Copy link

Same issue here

@FelipeeM
Copy link

FelipeeM commented Jul 19, 2024

Same issue here. I need to go back a few versions for it to work

@alvesduarte97
Copy link

Version node:20-slim worked here

@nschonni nschonni changed the title node:22 failing to build Issues with Node 22.5.0 images Jul 19, 2024
@nschonni nschonni pinned this issue Jul 19, 2024
@nschonni
Copy link
Member

This appears to be an upstream issue nodejs/node#53902 that has been reverted, but a new release will need to be cut before this repo will be able to address it.
Using the 22.4 image variants should work as a workaround.

@nodejs nodejs locked as resolved and limited conversation to collaborators Jul 19, 2024
@SimenB
Copy link
Member

SimenB commented Jul 19, 2024

#2121 (comment)

@SimenB SimenB closed this as completed Jul 19, 2024
@nschonni
Copy link
Member

The upstream PR is docker-library/official-images#17210 (please don't post on it), so when that lands and the images are built out, it should be resolved

@nschonni nschonni unpinned this issue Jul 23, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants