Sveltekit Deploy: Unable to Locate Documents
Start + Build commands are blank -- assuming config should get pulled from package.json.
PORT is not set in .env nor in Railway dashboard. I've seen conflicting mentions of setting 3000 v. 5173. FWIW, Sveltekit/Vite use 5173.
The modules are available in development but not during the build/deploy.
TIA
13 Replies
Project ID:
ff9e3a7d-07c5-4be6-96c0-789996515b27
Port number doesn’t matter, so long as it’s 4 digits
port is set automatically by Railway. You can override it by adding an env variable called PORT to your service
I've updated PORT for the service in RW. Still getting the same RollupError.
send me the table at the top of the build logs?
This one?
what the hell happened lol
either way, what node version do you use locally?
Beats me. Currently v20.1.0
try setting
engines.node
to 18 in your package.json
Still no luck
why is your start script just
node build
??
are these errors during build or deploy?I was considering adding a node server to see if I could connect via another sveltekit adapter. I instead doubled down on trying the regular config. Still with no luck tho
you do want to use the node adapter though
railway isn't like vercel or netlify where they figure out how to run your code for you, railway runs your code as is