• Scott@sh.itjust.works
    link
    fedilink
    English
    arrow-up
    10
    ·
    3 days ago

    I can’t stand working with any JS/TS projects. I’ve spent days trying to update very simple SPA sites without any success.

    • bleistift2@sopuli.xyz
      link
      fedilink
      English
      arrow-up
      5
      ·
      edit-2
      3 days ago

      Angular provides a utility to update its packages. If you naively update every single one manually, you’ll get errors because the library will be incompatible with itself. Maybe other flavors of SPA have update scripts, too?

      ng update @angular/core@<the next major version> @angular/cli@<the next major version> Don’t skip versions!

    • bleistift2@sopuli.xyz
      link
      fedilink
      English
      arrow-up
      8
      ·
      3 days ago

      For each problem you might want a package for, there are at least 3 packages, sometimes lots more. You need to sift through them in order to get the one that works and is maintained.