Skip to content
Discussion options

You must be logged in to vote

so for solving this issue of the old vulnerable @babel/core version still appearing in the runtime

  1. Use resolutions in package.json (if you're using Yarn):

    "resolutions": {
      "@babel/core": "^7.28.0"       
    }

Latest version of babel/core above

  1. If using npm, run:

    npm install @babel/core@latest --force
  2. Delete and clean everything before building:

    rm -rf node_modules package-lock.json
    npm cache clean --force
    npm install
  3. In your Dockerfile, make sure:

    • You're installing cleanly in each build layer.
    • You’re not copying old node_modules from earlier layers.
  4. After rebuilding the Docker image, run:

    npm ls @babel/core

    to verify only the new version is present.

This ensures the old ver…

Replies: 2 comments 6 replies

Comment options

You must be logged in to vote
2 replies
@xendren
Comment options

@icyJoseph
Comment options

Comment options

You must be logged in to vote
4 replies
@xendren
Comment options

@Dev-axay18
Comment options

Answer selected by xendren
@xendren
Comment options

@icyJoseph
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
3 participants