#Sveltekit Deploy: Unable to Locate Documents

18 messages · Page 1 of 1 (latest)

brave flicker
#

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

daring plumeBOT
#

Project ID: ff9e3a7d-07c5-4be6-96c0-789996515b27

woeful shuttle
#

port is set automatically by Railway. You can override it by adding an env variable called PORT to your service

brave flicker
#

I've updated PORT for the service in RW. Still getting the same RollupError.

pseudo falcon
#

send me the table at the top of the build logs?

brave flicker
#

This one?

pseudo falcon
#

what the hell happened lol

#

either way, what node version do you use locally?

brave flicker
#

Beats me. Currently v20.1.0

pseudo falcon
#

try setting engines.node to 18 in your package.json

brave flicker
#
    "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

pseudo falcon
#

why is your start script just node build??

#

are these errors during build or deploy?

brave flicker
#

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

pseudo falcon
#

you do want to use the node adapter though