forbole / big-dipper-2.0-cosmos

https://bigdipper.live
Apache License 2.0
142 stars 334 forks source link

Details page cannot display when running with `yarn build` and `yarn start` #1328

Closed nsonanh closed 8 months ago

nsonanh commented 8 months ago

Bug description

When running with yarn dev the block, transaction and account details page can display correctly. When running with yarn build and yarn start the block, transaction and account details page cannot display.

Steps to reproduce

Install dependencies:

$ yarn install

Build project:

$ yarn build

Run project:

$ yarn start

Expected behavior

The block details page e.g. /blocks/123 should display.

Actual behavior

It returns 404.

nsonanh commented 8 months ago

Issue resolved. For those who have the same problem, run: yarn add sharp before running yarn build. Closing issue