pancakeswap / pancake-frontend

:pancakes: Pancake main features (farms, pools, IFO, lottery, profiles)
https://pancakeswap.finance
GNU General Public License v3.0
2.69k stars 3.54k forks source link

Failed to compile #2126

Closed batuhantastekin closed 2 years ago

batuhantastekin commented 3 years ago

I tried to compile frontend repo of Pancakeswap but I see "Failed to compile" error when I enter npm run start command.

Here is the error I see on localhost:3000


  Line 13:3:  'placeholder' PropType is defined but prop is never used  react/no-unused-prop-types

src\components\PageSection\CurvedDivider.tsx
  Line 7:3:  'svgFill' PropType is defined but prop is never used  react/no-unused-prop-types

src\components\Toast\DescriptionWithTx.tsx
  Line 9:3:  'description' PropType is defined but prop is never used  react/no-unused-prop-types

src\views\AddLiquidity\index.tsx
  Line 242:9:  JSX props should not use functions  react/jsx-no-bind

src\views\FarmAuction\components\AuctionDetailsCard\AuctionSchedule.tsx
  Line 18:3:  'showForClosedAuction' PropType is defined but prop is never used  react/no-unused-prop-types

src\views\Home\components\CompositeImage.tsx
  Line 74:3:  'animate' PropType is defined but prop is never used  react/no-unused-prop-types

src\views\Pools\components\PoolCard\CardFooter\index.tsx
  Line 13:3:  'totalCakeInVault' PropType is defined but prop is never used  react/no-unused-prop-types

src\views\Profile\components\ConfirmProfileCreationModal.tsx
  Line 18:3:  'userName' PropType is defined but prop is never used  react/no-unused-prop-types

src\views\RemoveLiquidity\index.tsx
  Line 378:93:  JSX props should not use functions  react/jsx-no-bind
  Line 447:48:  JSX props should not use functions  react/jsx-no-bind
  Line 447:73:  JSX props should not use functions  react/jsx-no-bind
  Line 637:19:  JSX props should not use functions  react/jsx-no-bind```
Squiji commented 3 years ago

Did you find a fix? Experiencing this error also.

batuhantastekin commented 3 years ago

Did you find a fix? Experiencing this error also.

Unfortunately, still the same

memoyil commented 3 years ago

Have you restarted your typescript service and done yarn install ?

Squiji commented 3 years ago

Have you restarted your typescript service and done yarn install ?

Not OP but I have same problem. I tried doing yarn install, still compile error. What do you mean by restart typescript service?

Squiji commented 3 years ago

Updates?

PancakeSwap-bot commented 3 years ago

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 2 days.

Squiji commented 3 years ago

I’m still having this issue, is there a fix stated somewhere?

ghost commented 3 years ago

@Squiji

I’m still having this issue, is there a fix stated somewhere?

Not sure, but completely deleting the project, recloning and building from yarn, not npm install. did it for me.

matbrgz commented 3 years ago

This error is related to project dependencies, try to delete package-lock.json, node_modules and run command yarn. DO NOT USE NPM in this project. I recommend you clone the project again using gh repo clone pancakeswap/pancake-frontend

0xjojoex commented 2 years ago

duplicated see https://github.com/pancakeswap/pancake-frontend/issues/2006#issuecomment-978816885