Open iliachesnokov opened 4 months ago
To solve this problem, PR https://github.com/alephium/explorer/pull/248 must be merged.
@iliachesnokov We have switched to a monorepo a few months ago. Please check out https://github.com/alephium/alephium-frontend/tree/next/apps/explorer for the latest version :)
I'll archive this repo to avoid confusion.
The frontend of the explorer crashes when trying to open a page in the
devnet
environment.This issue arises because the
networkTypes
enum currently only includestestnet
andmainnet
. https://github.com/alephium/explorer/blob/d1b2623698310218aceaec09305344544470210e/src/types/network.ts#L19During clients initialization, the current network type is checked against this enum. https://github.com/alephium/explorer/blob/d1b2623698310218aceaec09305344544470210e/src/api/client.ts#L70-L72
As a result, an exception is thrown with the message "Value of the VITE_NETWORK_TYPE environment variable is invalid.", preventing the frontend explorer from working with the
devnet
network.