ai / autoprefixer-rails

Autoprefixer for Ruby and Ruby on Rails
https://twitter.com/autoprefixer
MIT License
1.22k stars 108 forks source link

ExecJS::ProgramError: TypeError: existsSync is not a function #193

Closed pollinoco closed 4 years ago

pollinoco commented 4 years ago

I have this issue with version 10.0.1.1

ExecJS::ProgramError: TypeError: existsSync is not a function PreviousMap.loadFile ((execjs):9628:11) PreviousMap.loadMap ((execjs):9667:21) new PreviousMap ((execjs):9562:23) new Input ((execjs):9721:17) parse$3 ((execjs):9830:19) new LazyResult$1 ((execjs):9960:18) Processor$1.process ((execjs):10369:14) process ((execjs):22757:61) eval (eval at ((execjs):22778:8), :1:23) (execjs):22778:8

morgoth commented 4 years ago

I have the same problem. Freezing to 10.0.1.0 for now (which is a working fine version)

albb0920 commented 4 years ago

Can any of you share your execjs runtime information? Thanks! (node or miniracer & version)

morgoth commented 4 years ago
 node -v
v12.19.0
BenoitMC commented 4 years ago

Same problem.

node -v
v14.12.0
albb0920 commented 4 years ago

This happens when input css contains source map annotation, which postcss will try to load for chaining.

Execjs runtimes are not able to read files, the browser build of postcss didn't handle this .

I'll release a patch very soon, thanks everyone for reporting this.