universalify icon indicating copy to clipboard operation
universalify copied to clipboard

Deployment error

Open UmaSakthi13 opened this issue 3 years ago • 4 comments

'cannot read property 'name' of undefined' error occurring at the index file of universalify package

UmaSakthi13 avatar Mar 23 '22 13:03 UmaSakthi13

Please post a minimal reproducible example, along with a full stack trace.

RyanZim avatar Mar 23 '22 18:03 RyanZim

}, 'name', { value: fn.name }) ^ TypeError: Cannot read property 'name' of undefined

We had package versions upgraded for several packages after which we are facing this error during deployment using Jenkins.

universalify- ^2.0.0 is the version given in package.josn file

UmaSakthi13 avatar Mar 24 '22 10:03 UmaSakthi13

It would appear that something is calling universalify with undefined; without a stack trace, it's impossible to determine what.

RyanZim avatar Mar 24 '22 15:03 RyanZim

@UmaSakthi13, you should provide the full stack trace which looks like the following:

Uncaught TypeError: Cannot read property 'name' of undefined
    at exports.fromCallback (/home/user/test/node_modules/universalify/index.js:15:26)
    at Object.<anonymous> (<some file path here>:<line number>:<column number>)
    at Module._compile (internal/modules/cjs/loader.js:1085:14)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1114:10)
    at Module.load (internal/modules/cjs/loader.js:950:32)
    at Function.Module._load (internal/modules/cjs/loader.js:790:12)
    at Module.require (internal/modules/cjs/loader.js:974:19)
    at require (internal/modules/cjs/helpers.js:101:18)

You mentioned that you had upgraded several packages. You might also want to determine if it's caused by upgrades, notably fs-extra@~10.0.0.

lamweili avatar Apr 14 '22 03:04 lamweili

Closing for lack of response.

RyanZim avatar Oct 08 '22 01:10 RyanZim