Problem/Motivation

Gulp watch / gulp prod on a new project, gives this error:

TypeError: Class extends value undefined is not a constructor or null
at Object.<anonymous> (…/node_modules/postcss-scss/lib/nested-declaration.js:3:33)

Steps to reproduce

run npm install, and then gulp watch or gulp prod

Comments

rembrandx created an issue. See original summary.

rembrandx’s picture

The fix is to add the 'postcss' node module to devDependencies instead of leaving it in peerDependencies.
For good measure, updating the minor versions for all the postcss-releated modules as well.

Run:
npm install postcss@8.4.7 gulp-postcss@9.0.1 postcss-reporter@7.0.5 postcss-scss@4.0.3 --save-dev

If gulp still fails, throw out the node_modules folder and the package lock file, and run npm install again.

  • rembrandx committed c28f034 on 3.x
    ssue #3266928: Running Gulp gives a TypeError tracing back to postcss -...
reszli’s picture

I had the same issue and the solution proposed above solved it

rembrandx’s picture

Version: 3.6.5 » 3.6.6
Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.