I am trying to use ethersjs inside cloud functions because I need the utils parseUnit function the module provides. According to my log, it is undefined tho.
const ethers = Moralis.ethersByChain("0x1");
const token0_decimal_value = ethers.utils.parseUnits(token0_value, token0_metaData.get("decimals"))
- 2022-04-03T13:50:52.605Z - Error: TypeError: Cannot read properties of undefined (reading ‘parseUnits’)