woutdp / live_svelte

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

NodeJS.ERROR #155

Closed obiwormxlii closed 1 week ago

obiwormxlii commented 1 week ago

I've been trying for a while to get at least the examples working, and I'm getting this error whenever I'm trying to load a page with svelte in it. The straight live pages are working. Running on windows 11.

Cannot find module 'server'
Require stack:
- c:\code\live_svelte\example_project\_build\dev\lib\nodejs\priv\server.js
Error: Cannot find module 'server'
Require stack:
- c:\code\live_svelte\example_project\_build\dev\lib\nodejs\priv\server.js
    at Function._resolveFilename (node:internal/modules/cjs/loader:1249:15)
    at Function.resolve (node:internal/modules/helpers:151:19)
    at requireModule (c:\code\live_svelte\example_project\_build\dev\lib\nodejs\priv\server.js:16:34)
    at getResponse (c:\code\live_svelte\example_project\_build\dev\lib\nodejs\priv\server.js:51:23)
    at Interface.onLine (c:\code\live_svelte\example_project\_build\dev\lib\nodejs\priv\server.js:63:39)
    at Interface.emit (node:events:518:28)
    at [_onLine] [as _onLine] (node:internal/readline/interface:415:12)
    at [_normalWrite] [as _normalWrite] (node:internal/readline/interface:609:22)
    at Socket.ondata (node:internal/readline/interface:242:23)
    at Socket.emit (node:events:518:28)