postcss / autoprefixer

Parse CSS and add vendor prefixes to rules by Can I Use
https://twitter.com/autoprefixer
MIT License
21.58k stars 1.25k forks source link

webpack build TypeError: Cannot read property 'prefix_exceptions' of undefined #1405

Closed wanweiwang2012 closed 3 years ago

wanweiwang2012 commented 3 years ago

npm upgrade autoprefixer v10.2.4 -> v10.2.5 (return v10.2.4 is ok) "postcss": "^8.2.6" -> 8.2.14 "postcss-loader": "^5.0.0" -> 5.2.0

An error occurred: Module build failed (from ./node_modules/postcss-loader/dist/cjs.js): TypeError: Cannot read property 'prefix_exceptions' of undefined at Browsers.prefix (/Users/wanweiwang/Documents/zpparts/gits/zpparts-web/zp-buyer/node_modules/autoprefixer/lib/browsers.js:64:23) at /Users/wanweiwang/Documents/zpparts/gits/zpparts-web/zp-buyer/node_modules/autoprefixer/lib/prefixes.js:135:54

ai commented 3 years ago

Update caniuse-lite

liveHarshit commented 3 years ago

@wanweiwang2012 facing the same issue, let me know if you find any fix, thanks.

liveHarshit commented 3 years ago

Thanks, @ai @wanweiwang2012 it worked, it was due to workspace cache.

wanweiwang2012 commented 3 years ago

@wanweiwang2012 facing the same issue, let me know if you find any fix, thanks.

install and update caniuse-lite is ok