I am working on a project where I mainly use CSS (SASS) and just a few js. I found out about Autoprefixer a couple days ago and tried to use it by CLI. But each time I get the same error, "promise is not defined". I tried to fix this problem, but I only found answer for grunt or other things. No solutions for CLI use. Do you have any idea on how can I fix it ?
Thank you !
After some research, I tried many things then I come with a solution.
npm i -g es6-promise
Then, in lazy-result.js file that gave me the error on promise, I add at the first line:
var Promise = require('es6-promise').Promise;
It seems to work fine for me.