Sveltekit Deploy: Unable to Locate Documents

ff9e3a7d-07c5-4be6-96c0-789996515b27
ff9e3a7d-07c5-4be6-96c0-789996515b27
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
Percy
Percy2y ago
Project ID: ff9e3a7d-07c5-4be6-96c0-789996515b27
Adam
Adam2y ago
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
permalik
permalik2y ago
I've updated PORT for the service in RW. Still getting the same RollupError.
Brody
Brody2y ago
send me the table at the top of the build logs?
permalik
permalik2y ago
This one?
Brody
Brody2y ago
what the hell happened lol either way, what node version do you use locally?
permalik
permalik2y ago
Beats me. Currently v20.1.0
Brody
Brody2y ago
try setting engines.node to 18 in your package.json
permalik
permalik2y ago
{
"name": "tymalik-secondary",
"version": "0.0.1",
"private": true,
"scripts": {
"dev": "vite dev",
"build": "vite build",
"preview": "vite preview",
"start": "node build",
"test": "playwright test",
"check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",
"test:unit": "vitest",
"lint": "prettier --plugin-search-dir . --check . && eslint .",
"format": "prettier --plugin-search-dir . --write ."
},
"engines": {
"node": "18"
},
"type": "module",
"devDependencies": {
"@playwright/test": "^1.28.1",
"@sveltejs/adapter-auto": "^2.0.0",
"@sveltejs/kit": "^1.5.0",
"@typescript-eslint/eslint-plugin": "^5.45.0",
"@typescript-eslint/parser": "^5.45.0",
"autoprefixer": "^10.4.14",
"eslint": "^8.28.0",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-svelte": "^2.26.0",
"postcss": "^8.4.24",
"prettier": "^2.8.0",
"prettier-plugin-svelte": "^2.8.1",
"svelte": "^3.54.0",
"svelte-check": "^3.0.1",
"tailwindcss": "^3.3.2",
"tslib": "^2.4.1",
"typescript": "^5.0.0",
"vite": "^4.3.0",
"vitest": "^0.25.3"
},
"dependencies": {
"@types/backblaze-b2": "^1.5.2",
"backblaze-b2": "^1.7.0"
}
}
{
"name": "tymalik-secondary",
"version": "0.0.1",
"private": true,
"scripts": {
"dev": "vite dev",
"build": "vite build",
"preview": "vite preview",
"start": "node build",
"test": "playwright test",
"check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",
"test:unit": "vitest",
"lint": "prettier --plugin-search-dir . --check . && eslint .",
"format": "prettier --plugin-search-dir . --write ."
},
"engines": {
"node": "18"
},
"type": "module",
"devDependencies": {
"@playwright/test": "^1.28.1",
"@sveltejs/adapter-auto": "^2.0.0",
"@sveltejs/kit": "^1.5.0",
"@typescript-eslint/eslint-plugin": "^5.45.0",
"@typescript-eslint/parser": "^5.45.0",
"autoprefixer": "^10.4.14",
"eslint": "^8.28.0",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-svelte": "^2.26.0",
"postcss": "^8.4.24",
"prettier": "^2.8.0",
"prettier-plugin-svelte": "^2.8.1",
"svelte": "^3.54.0",
"svelte-check": "^3.0.1",
"tailwindcss": "^3.3.2",
"tslib": "^2.4.1",
"typescript": "^5.0.0",
"vite": "^4.3.0",
"vitest": "^0.25.3"
},
"dependencies": {
"@types/backblaze-b2": "^1.5.2",
"backblaze-b2": "^1.7.0"
}
}
Still no luck
Brody
Brody2y ago
why is your start script just node build?? are these errors during build or deploy?
Brody
Brody2y ago
permalik
permalik2y ago
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
Brody
Brody2y ago
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
Want results from more Discord servers?
Add your server