pancakeswap / pancake-swap-interface-v1

:pancakes: Pancake trading interface V1
https://exchange.pancakeswap.finance
GNU General Public License v3.0
316 stars 944 forks source link

NetworkConnector error #451

Open WinDyAlphA opened 3 years ago

WinDyAlphA commented 3 years ago

Hello there, it would glad if you try to help me, sorry for my poor english.

When I npm run start the interface

this should launch the interface but here is an issue :

C:/Users/Wind/Desktop/cro/Swap DEX/Pancake/pancake-swap-interface-v1-master/src/connectors/NetworkConnector.ts TypeScript error in C:/Users/Wind/Desktop/cro/Swap DEX/Pancake/pancake-swap-interface-v1-master/src/connectors/NetworkConnector.ts(100,22): This condition will always return true since this function is always defined. Did you mean to call it instead? TS2774

100 | if (resolve && reject) { | ^ 101 | if ('error' in result) { 102 | reject(new RequestError(result?.error?.message, result?.error?.code, result?.error?.data)) 103 | } else if ('result' in result) {

Any help would be great thanks 👍

mtfuji25 commented 3 years ago

it happens for me

Grodageek commented 3 years ago

I have the same problem.

Aldemaro14 commented 3 years ago

Got the same problem.