[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:08:52 BST 2022
    
    
  
On ബു, മേയ് 4 2022 at 07:35:14 വൈകു +0530 +0530, 
Pirate Praveen <praveen at onenetbeyond.org> wrote:
> 
> 
> 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
> 
In upstream bundle process.env.NODE_ENV is replaced by
browser$1.env.NODE_ENV !== 'production')
but our bundle still have process.env.NODE_ENV which indicates 
rollup-plugin-node-polyfills is not working here.
    
    
More information about the Pkg-javascript-devel
mailing list