ypeError: Cannot convert undefined or null to object code example
Example 1: TypeError: Cannot convert undefined or null to object at Function.values () in solidity
I had this issue when compiling using my global truffle module. i switched to npx truffle compile after installing it as a dev dependency. The global module was v5.0.5 and the local module was v5.2.6 . so you might want to check your compiler version.
Example 2: creation of wallet errored: Cannot convert undefined or null to object
refresh your remix IDE