[Pkg-javascript-devel] Bug#1009245: ruby-autoprefixer-rails: broken build (TypeError: Cannot read property 'env' of undefined)

Pirate Praveen praveen at onenetbeyond.org
Wed May 4 15:05:14 BST 2022



On ബു, മേയ് 4 2022 at 12:29:22 വൈകു +0530 +0530, 
Pirate Praveen <praveen at onenetbeyond.org> wrote:
>> The error "Cannot read property 'env' of undefined" seems related to 
>> this line (generated vendor/autoprefixer.js):
>> 
>>>   if (process.env.NODE_DEBUG) {
>> 
>> So I don't understand what is wrong here
> 
> Upstream build does not have this line. Akshay was mentioning wrong 
> version of util.js was being used.
> 
> It seems the node-polyfills rollup plugin is not working as expected. 
> These should be replaced for browser build.
> 
Looks like this module is unmaintained so it is likely buggy with newer 
nodejs releases (upstream may be still building with older nodejs)
https://github.com/ionic-team/rollup-plugin-node-polyfills/issues/28



More information about the Pkg-javascript-devel mailing list