MostroP2P / mostro-web

Mostro web client
https://mostro.network
MIT License
23 stars 11 forks source link

home screen error #13

Closed elnosh closed 9 months ago

elnosh commented 9 months ago

getting the following error during startup

[plugin:vite:import-analysis] Failed to resolve import "~/constants/version" from "layouts/default.vue". Does the file exist?

/home/elnosh/Documents/mostro/mostro-web/layouts/default.vue:72:29

19 |  import { useDisplay } from 'vuetify'
20 |  import { useAuth } from '@/stores/auth'
21 |  import { GIT_COMMIT } from '~/constants/version'
   |                              ^
22 |  import useEllipsis from '~/composables/useEllipsis'
23 |  import pkg from '~/package.json'

looks like it is just to display the commit. I commented out that GIT_COMMIT to be able to run it locally but not sure what to put in that /constants directory

bilthon commented 9 months ago

You must run npm run build to generate the constants/version.js file.

This was not clear in the documentation, I'm amending it here.

Thanks for bringing it up!