Skip to content

unknown hook found for "SvelteHook" (with Phoenix 1.8.0-rc1) #173

@andruby

Description

@andruby

I'm trying to use LiveSvelte with Phoenix 1.8.0-rc1. I'm getting a unknown hook found for "SvelteHook" error in the JS console (as well as a syntax error when using <style>)

I'm running MacOS 15.3.2 with Node v23.6.0. On Phoenix 1.7.21 I didn't have these errors.

Looking at the Phoenix changelog I don't see what would have broken things between 1.7.21 and the 1.8.0 RC's for LiveSvelte.

Steps to reproduce

# new phoenix project
mix archive.install hex phx_new 1.8.0-rc.1 --force
mix phx.new sveleith --database=sqlite3
cd sveleith
mix ecto.create

Followed the LiveSvelte installation instructions (mix live_svelte.setup etc) and added the Simple numbers svelte and view from the examples folder.

Image

I pushed the code to https://github.com/andruby/live_svelte_1.8.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions