woutdp / live_svelte

Svelte inside Phoenix LiveView with seamless end-to-end reactivity
https://hexdocs.pm/live_svelte
MIT License
1.2k stars 46 forks source link

Using github dependency #107

Closed drKreso closed 8 months ago

drKreso commented 8 months ago

When I don't use published hex, but instead a github url

  {:live_svelte,  git: "https://github.com/kodius/live_svelte.git", override: true}

vs.

   {:live_svelte, "~> 0.12.0"}

I get this on docker build . (deploy assets step)

Screenshot 2024-01-13 at 20 57 43

What do I need to do to be able to reference live_svelte from .js I am asking, because I need this small fix I did for my deployment and it's not published yet.

woutdp commented 8 months ago

Can you try running mix assets.build in your clone and pushing it to github and using the latest commit hash?

woutdp commented 8 months ago

I'll also make a new version at some point, I've been putting it off as I need to test some things and make release notes, but will do at some poinit

drKreso commented 8 months ago

I did a mix asssets.build

Then I removed priv/static from .gitignore and pushed to Github.

Now it works as expected.

Thanks!