Heroku doesn't install parcel/transformer-sass

I’m using parcel js as the package bundler for my project. Whenever I write a scss file, parcel installs transformer/sass to parse the scss file. Everything works locally but whenever I push it to Heroku, the build fails with this error

@parcel/package-manager: Could not find module "@parcel/transformer-sass", but 
it was listed in package.json. Run your package manager first.
  /tmp/build_b6e0e662/client/package.json:22:5
    21 |   "devDependencies": {
  > 22 |     "@parcel/transformer-sass": "^2.7.0",
  >    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^ Defined here, but not installed
    23 |     "parcel": "^2.7.0",
    24 |     "process": "^0.11.10"

I’m not sure how to fix this issue. Please help

Not sure if this helps, but check this link out: => https://jtuto.com/javascript/heroku-doesnt-install-parcel-transformer-sass/

1 Like

I was the one to ask that question on stack overflow and it didn’t help