nismod / irv-frontend

IRV frontend
MIT License
1 stars 0 forks source link

Fix build error in CI #27

Closed tomalrussell closed 1 year ago

tomalrussell commented 1 year ago

Looks like we need a try/except around the import, or pick a default proxy-table and put it at the expected file path.

#17 0.386 > infra-risk-vis@0.2.0 build
#17 0.386 > tsc && vite build
#17 0.386 
#17 11.18 ✘ [ERROR] Could not resolve "./dev-proxy/proxy-table"
#17 11.18 
#17 11.18     vite.config.ts:19:25:
#17 11.18       19 │ import { devProxy } from './dev-proxy/proxy-table'
#17 11.18          ╵                          ~~~~~~~~~~~~~~~~~~~~~~~~~
#17 11.18 
#17 11.18 failed to load config from /app/vite.config.ts

from https://github.com/nismod/irv-frontend/actions/runs/6196833311/job/16824248005#step:4:300