opensea-js icon indicating copy to clipboard operation
opensea-js copied to clipboard

V 3.0.0 TypeError: supportedProvider.send.toString(...).replaceAll is not a function

Open MetalGear-cmd opened this issue 4 years ago • 11 comments

DEPRECATED: Please use providerUtils.standardizeOrThrow() instead DEPRECATED: Please use providerUtils.standardizeOrThrow() instead DEPRECATED: Please use providerUtils.standardizeOrThrow() instead TypeError: supportedProvider.send.toString(...).replaceAll is not a function at Object.standardizeOrThrow (D:\Documents\Office\opensea-creatures-master\node_modules@0x\web3-wrapper\node_modules@0x\utils\src\provider_utils.ts:78:71) at new Web3Wrapper (D:\Documents\Office\opensea-creatures-master\node_modules@0x\web3-wrapper\src\web3_wrapper.ts:157:40) at new WyvernProtocol (D:\Documents\Office\opensea-creatures-master\node_modules\wyvern-js\src\wyvernProtocol.ts:397:25) at new OpenSeaPort (D:\Documents\Office\opensea-creatures-master\node_modules\opensea-js\src\seaport.ts:214:9) at Object. (D:\Documents\Office\opensea-creatures-master\index.js:51:17) at Module._compile (internal/modules/cjs/loader.js:1063:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10) at Module.load (internal/modules/cjs/loader.js:928:32) at Function.Module._load (internal/modules/cjs/loader.js:769:14) at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:72:12) at internal/main/run_main_module.js:17:47

After the update this error message started appearing, I dont know what to do? Any Help?

MetalGear-cmd avatar Mar 10 '22 09:03 MetalGear-cmd

Same issue.

robertu7 avatar Mar 21 '22 10:03 robertu7

same issue

allenchuang avatar Mar 23 '22 07:03 allenchuang

Update node version to v16 works for me.

HuyNguyenHai avatar Mar 25 '22 01:03 HuyNguyenHai

Updated to Node 16.x, but Error: Expected amount to be of type BigNumber, encountered: 1

robertu7 avatar Mar 25 '22 04:03 robertu7

works now on [email protected] with Node.js v16.13.2, other deps:

"@0x/assert": "^3.0.30",
"@0x/subproviders": "6.6",
"web3-provider-engine": "^16.0.3"

robertu7 avatar Mar 27 '22 00:03 robertu7

@MetalGear-cmd , is this still an issue for you? Have you tried what @robertu7 mentioned?

esteban-OpenSea avatar Apr 01 '22 03:04 esteban-OpenSea

Just wanted to follow up on this, is this still an issue?

esteban-OpenSea avatar Apr 08 '22 15:04 esteban-OpenSea

After upgrading to node 16 getting the following error from @0x/web3-wrapper:

Cannot read properties of undefined (reading 'topic')

Anyone else run into this?

cchyung avatar Apr 11 '22 19:04 cchyung

Same issue.

jozhi avatar Apr 16 '22 09:04 jozhi

Make sure you're running on Node 16. .replaceAll isn't supported on earlier versions:

Screen Shot 2022-06-29 at 8 13 07 PM

itsdiay avatar Jun 30 '22 00:06 itsdiay

Make sure you're running on Node 16. .replaceAll isn't supported on earlier versions:

Screen Shot 2022-06-29 at 8 13 07 PM

Hi,

I still have this issue (running on node 16.16 and opensea-js is 4.0.7). Any tips? Thanks

kk-ai-lab avatar Aug 31 '22 19:08 kk-ai-lab