New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
js/render module not found on server #21
Comments
Small update, there's indeed a bug for production, was able to reproduce it |
I think it should be fixed. A couple of changes, either follow the reinstallation steps, as they changed a bit, or do the following:
import * as Components from '../svelte/**/*'
import {exportSvelteComponents, render} from 'live_svelte'
module.exports = exportSvelteComponents(Components)
module.exports.ssrRenderComponent = render
# Configures LiveSvelte
config :live_svelte, :otp_name, :my_app |
Hi @woutdp, I've tested it and it appears to be working. Thank you! |
@ziazek
|
@woutdp that's great! |
https://elixirforum.com/t/livesvelte-e2e-reactivity-in-liveview-with-svelte/54822/4
Hi @woutdp thanks for creating this project! I’ve used it successfully in a DEV environment, but I can’t figure out how to get SSR to work when I deploy it to fly.io.
I’ve checked that I’ve installed NodeJS on both the builder and runner images, and I’ve tried both 16.x and 18.x versions.
When I remote console into the running application, I get:
It works well when I remove the NodeJS.Supervisor from application.ex.
Any guidance would be much appreciated!
The text was updated successfully, but these errors were encountered: