KipK / openevse-gui-v2

OpenEVSE WiFi Gateway User Interface (V2)
BSD 2-Clause "Simplified" License
5 stars 2 forks source link

Missing library posix_tz_db ? #1

Closed fhteagle closed 1 year ago

fhteagle commented 1 year ago

I did a git pull into a fresh directory this morning (09 NOV 2022, ~1300UTC), npm install, and npm dev run. However, the GUI stalls with this error displayed onscreen and in npm terminal:

44 |  import { utc2evseLocalTime } from "../../../lib/utils.js";
45 |  import { httpAPI } from '../../../lib/utils.js';
46 |  import timeZone from "../../../../library/posix_tz_db/zones.json";
   |                        ^
47 |  import { onMount } from "svelte";
48 |  import ButtonFetch from "../../ui/Button.svelte"; 

Did npm not pull in all the dependencies?

KipK commented 1 year ago

have you fetched submodules ? it's on /library/ folder

fhteagle commented 1 year ago

Please excuse my being really, really rusty at using git/github.

git clone --recurse-submodules https://github.com/KipK/openevse-gui-v2.git as the pull method fixed it.

Thanks.

KipK commented 1 year ago

you can git config --global submodule.recurse true

to set your git fetching automaticallyt submodules,