arpadHegedus / postcss-node-sass

A PostCSS plugin to parse styles with node-sass
MIT License
23 stars 16 forks source link

when sass.render return res.map is undefined catch error #9

Closed winfredwyw closed 5 years ago

winfredwyw commented 5 years ago

return postcss.parse(res.css.toString(), { from: result.opts.from, map: { prev: JSON.parse(res.map.toString()) // right here } })

arpadHegedus commented 5 years ago

You need to log your res variable. Seems like these are not correct settings to parse. Please give full code example to investigate further.

arpadHegedus commented 5 years ago

I merged a pull request, please double check your issue if it still persists.