Coder Social home page Coder Social logo

Comments (7)

iRyusa avatar iRyusa commented on June 2, 2024

Not sure why you add manually @babel/[email protected] to your package json here ?

npm prune should just fix this no?

from mjml.

ddolcimascolo avatar ddolcimascolo commented on June 2, 2024

Hi @iRyusa

I do it to simulate an existing project having the previous version installed. This problem is not new (#2299) and is due to lax dependencies version... I'm using mjml for a very long time, so my @babel/runtime dependency is whatever version satisfied your package.json at that time, actually 7.14.6. MJML now requires a more recent version of @babel/runtime but you didn't bump the dependency in package.json, resulting in a broken package for upgrades.

Indeed the problem does not appear for new installs in new projects because NPM picks the latest available version of @babel/runtime that satisfies the dependency.

According to Babel, you should depend on at least 7.23.8 as per https://github.com/babel/babel/blob/0e5ae8de66d5c1e9ecc3f94daa5bd5d3a920e5a4/packages/babel-helpers/src/helpers/callSuper.ts#L1

Hope this helps,
David

from mjml.

iRyusa avatar iRyusa commented on June 2, 2024

Really need to burn everything down and remove completely babel at some point 😮‍💨 .

I'll do a 4.15.2 with updated package.json for everything for today

from mjml.

ddolcimascolo avatar ddolcimascolo commented on June 2, 2024

Thx a lot for your help :)

from mjml.

iRyusa avatar iRyusa commented on June 2, 2024

For future me : yarn upgrade-interactive doesn't update the package.json when updating a package so I need to do update manually next time 😑

Can you confirm 4.15.2 is good for you @ddolcimascolo ?

from mjml.

ddolcimascolo avatar ddolcimascolo commented on June 2, 2024

Yep. All good now.

Thanks again,
Cheers,

David

from mjml.

ddolcimascolo avatar ddolcimascolo commented on June 2, 2024

Fixed in 4.15.2

from mjml.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.