Troubleshooting
Symptoms, causes and fixes for common problems when running a theme locally.
Find your symptom, check the cause, apply the fix.
The page is blank at localhost:5173
- Cause: bare
/is a small shell, not the storefront. - Fix: open
/enor/ar.
"Store is temporarily unavailable"
- Cause: the store in
.envreturned nothing. The id is wrong or the store is not public. - Fix: run
salla theme dev --storeand pick another. To test one address only, add?storeId=<numeric id>(Link a store).
I changed the store and nothing changed
- Cause: Vite reads
.envonce, when it starts. Or the address still carries an old?storeId=, which wins over.env. - Fix: restart the dev server and remove or update
?storeId=in the address.
"Port 5173 is busy"
- Cause: another process uses the port. This is not an error.
- Fix: none needed. The CLI picks the next free port and prints it. Use
-pto start from another one.
--port is ignored
- Cause: you passed it after
pnpm dev --, and Vite drops it. - Fix: run
salla theme dev --port 3000.
The dev server exits before it is ready
- Cause: Vite failed to start, usually a syntax error in
vite.config.tsor a broken import. - Fix: run
pnpm devin the theme folder to see Vite's real error.
The first load takes a long time
- Cause: the first request compiles the server code. About ten seconds is normal.
- Fix: wait. After two minutes the CLI tells you to open the address yourself, because it may still be compiling.
Dependencies fail to install
- Cause: a network problem, or a package manager other than pnpm 10 or newer.
- Fix: run
pnpm installinside the theme folder. The folder is kept. npm and yarn are not supported.
"Couldn't fetch the theme starter"
- Cause:
createcould not download the starter package. - Fix: check your network and npm registry settings, then run it again.
"./my-store already exists"
- Cause: the folder name derived from your theme name is taken.
- Fix: choose another name or remove the folder.
"This folder isn't a Salla theme"
- Cause: there is no
twilight.jsonhere. - Fix:
cdinto the theme folder.
"This folder is a Twig theme"
- Cause: it is a legacy theme, and
salla theme devis for React themes. - Fix: use
salla theme previewthere, or create a React theme.
Node is too old
- Cause: Node older than 20.19.
- Fix: run
salla theme doctorand follow what it prints (Prerequisites).
A fresh clone shows the demo store
- Cause:
.envis not in git. - Fix: run
salla theme dev --store <id>once.
The theme editor does not open
- Cause: you are not signed in, the folder's git remote is not the theme's repository, or the theme is installed on none of your stores.
- Fix: run
salla login, check thatsalla theme listshows the theme, and install it on one of your stores. The storefront still runs meanwhile (Theme editor).
salla theme publish stops at the checks
- Cause: the folder has no
twilight.json, your account is not linked to GitHub, or the git remote does not match the theme's repository. - Fix: read the failing step the CLI prints. Link GitHub in the Partners portal, or point
originat the repository shown there (Publish).
Still stuck
Read How a theme works for the request flow.