Skip to content

Troubleshooting

alireza-selldone edited this page Nov 28, 2026 · 1 revision

Troubleshooting

Sign in goes to Selldone and shows an error

The shop has no OAuth client for sign-in. Set up the shop's OAuth client id (shop dashboard, or the Selldone MCP connector's selldone_shop_client_create). See Shop Requirements.

The shop shows a blank page, or an old page flashes first

A chunk imports ../shop.js, so the app loads twice through Selldone's redirect. Keep shared code in the core chunk and don't use experimentalMinChunkSize (both in vite.config.ts). When you add a chunk group, keep its rule: a module joins a group only when everything it imports outside core is in the same group. release.sh refuses a build with ../shop.js imports, and its production-bundle check (step 5b) refuses a build that does not draw the home in a real browser.

release.sh stops with "PROD-CHECK FAILED: not uploading"

Nothing was uploaded, and the version number is not used up. The built bundle did not draw one of home, a department, a product, the field notes, a post, the cart or the checkout, or a page error happened. The lines above the message name the page and the error.

Message Fix
FAIL home, then "the home did not draw; the bundle does not start" The build itself is broken, typically a chunking change (code that runs before what it needs). Undo the last change to vite.config.ts or to what the entry imports, rebuild and run scripts/prod-check.mjs dist/app again.
FAIL category: no collection link on the home / FAIL product / FAIL post The page before it drew, but had nothing to follow: the shop in SHOP_URL has no collections, products or posts. Use a shop with data (the default https://workbench.selldone.shop has them).
"has no private Layout release in its loader" The SHOP_URL domain has no Layout pinned, so there is no loader to point at the build. Use the default, or a domain of yours with a Layout pinned.
Cannot find module / an error naming Playwright PW does not point at your Playwright: set PW=<path>/node_modules/playwright/index.js, and run npx playwright install chromium once.
"no dist/app/shop.js" Build first (npm run build-production, or run the whole release.sh).

Fix the cause and run release.sh again with the same version number.

Chunks fail with a MIME error (text/x-java)

Selldone stores the MIME type it sniffs from each file. Every JS file must start with "use strict";: that is sniffAsJavaScript in vite.config.ts. Check with file --mime-type dist/app/js/*.js.

The upload is rejected

Message Fix
CHECK FAILED from release.sh, with files: over 300 Too many files. Workbench's release refuses more than 300 (1.0.0 has 275; each photo in skins/workbench/photos/ adds one, and a new dependency can add many). Remove what you added, or group it with the code it travels with in vite.config.ts.
"The manifest must be an array." Upload with scripts/kalio-deploy.mjs, not the plain CLI.
"Archive paths must be safe relative app/ paths." Remove dist/index.html, and use no spaces or brackets in file names.
"Active SVG attributes" / "only passive vector shapes" Run node scripts/kalio-svg-flatten.mjs dist/app.
Request cut off after ~100 s, and the version exists but is empty Too many files reached the server. Stay at 300 or fewer, then upload a new version number.
401 The CLI is signed out (~/.selldone-dev/.persist is empty). Run selldone → Login.
node: bad option: --use-system-ca Your Node.js is too old for the release scripts. Use Node.js 22.15 or newer.

The upload worked but the shop still shows the old version

  • The version isn't attached yet: see Go Live.
  • A custom domain keeps its own selection. Attach the version to that domain, or set it to inherit.
  • You checked a URL with a query. Open the plain address and read window.sdShopLayout.
  • The ZIP was stale: always package with --force and compare shop.js with cmp.

/ shows a landing page, the Layout is only on /shop

The Home is a Page Builder page. Set Home to Shop for the shop, or for that domain: see Go Live.

The Layout's description on Selldone is not the one in manifest.json

Selldone keeps the description of the first upload; later uploads do not change it. Write the description before the first upload.

A product sits on a white or coloured square

Its photo has its own ground. Workbench sets every product on a white plate (a light neutral one in dark mode, the default), so a coloured ground shows as a square in both modes, and a white ground as a lighter square in dark mode. Use a transparent cut-out (PNG or WebP) as the main photo. Replace the photo in Selldone; no release is needed. See Shop Requirements.

A product photo is blurry, or a small one does not load

Selldone's CDN keeps product photos only at their original size and as a 128 px thumbnail; any other size is a 404. In code, use productImage(p) (the original, in components/ly/ly.ts) for anything wider than a thumbnail, and productImage(p, 128) only for small thumbnails. The product page draws the main photo at most about 1.4 times its own width, so a small original stays small rather than blurry; upload a larger one in Selldone for a bigger picture.

A photo slot shows no photo

The Layout has no file for it. The hero then shows the family's darkest band behind its words, a photo promo is left out (without both, the section hides), and About shows your best sellers as cut-outs. Add skins/workbench/photos/<exact name>.webp (hero.webp, hero-sq.webp, promo-battery.webp, promo-delivery.webp, about.webp; for a collection on the About page, col-<slug of its title>.webp, as in col-board-and-card-games.webp), then build and release a new version: the files are listed at build time. The battery promo also needs a product whose spec names a "Tool Platform", and the delivery promo a delivery way. See Customize.

A department shows a picture that is not mine

The home's rail, Departments and the phone menu show the department's own image from Selldone, else its best seller's photo: give the department its image in the Selldone dashboard; no release is needed. Only the About page's collection panels read skins/workbench/photos/col-<slug of its title>.webp, and the repository ships none; a file of yours whose name makes the same slug is picked up there. The five slot photos were made for Toolino: you can replace or delete any of them, then release a new version.

A home section is missing

Each section hides itself without its data; the section numbers are a counter, so a hidden one leaves no gap:

Section Needs
The hero always shows; without hero.webp its words sit on the family's darkest band
The department rail departments with products
Shop by battery platform products whose own spec has a "Tool Platform" value (40 characters or fewer)
Price drops products with a live saving
Kit or bare tool? at least one kit and one bare tool, from the products' own "Battery Included" or "Power Package" rows (cordless tools only)
Side by side a department with three tools or more and at least two filter keys
The two spec rows other departments with a filter key that ranks them (a size, torque, capacity, range, voltage, length or diameter key, else the first) and three tools or more that have it
The photo promos each its own photo; the battery promo also a battery platform, the delivery promo a delivery way
Brands products with a brand
Field notes published articles (Selldone's demo posts are left out)

A department's filter keys are the spec keys most of its tools share: see Shop Requirements.

A line is missing from the service strip

Each line shows only when the shop has it: door delivery from a delivery way that is not pickup ("Delivered to your door"; a courier limited to a real radius says "Delivered within n km", post or worldwide shipping "Ships to your address"), "Pickup in " only when the Pickup way has a pickup point, and "Pay on delivery" only with a cash-on-delivery payment method or delivery way. On a phone (979 px and narrower) the strip keeps the delivery line and the language and currency pill; Track order, the Pickup point and Delivery and returns are in the phone menu. Set what is missing in the Selldone dashboard; no release is needed. See Shop Requirements.

On a very wide screen (or zoomed out) the page looks like a strip

Workbench's content sits in one centred column that grows a little on big screens, while the hero's photo, the tint bands, the header and the footer run the window's full width. On a very wide window there is more ground on either side of the column; that is by design, so text never stretches into lines too long to read.

A loading picture stays for a moment after the page is ready

On the first page load of a browser session Workbench keeps its own loading picture (the same as the domain's loading screen) until the shop's data, the departments and the first page are in and the first photo has decoded, and at least 1.2 s after the visit began, so the ring turns once; it is always gone by 4 s and never shows again in that session. With reduced motion it has no minimum and no animation. It lives in components/ly/shell/LySplash.vue.

Price drops shows only some tools

Price drops lists the tools that have a live saving, the biggest first. Give other tools a discount, or find them in their department and in search. Without any saving, the spec strip, the phone menu and the home leave Price drops out.

Departments doesn't open on hover

That is by design: Departments and the menus open on a click and close on a second click, Esc, a click outside or a page change; the filter dropdowns open on a click and close on a second click, Esc or a click outside.

The opening hours are missing

They are read from the pickup point's note, as a time range: 8:00-18:00, 8:00–18:00 or 8:00 to 18:00, else from the shop info's hours line. Write them that way. They show on the product page's pickup line, About and Contact. Without a range, the hours are left out everywhere; nothing is guessed. The Pickup point page's "When to collect" comes from the Pickup way's own days and windows instead.

The strip says "Pickup available" instead of a city

The city comes from the pickup point's own address in the Pickup delivery way. Fill it in the Selldone dashboard; no release is needed.

Checkout shows no time windows

The windows are your delivery ways' own time spans. Add them to each delivery way in the Selldone dashboard. A window shows only for the way that offers it.

Contact's map shows no streets

Neither the shop info nor the pickup point has a location. Set the shop's location on the map in the Selldone dashboard. Without one, Contact shows the map's calm water colour and the pin only.

Filters are missing, or a spec key never becomes a filter

  • Specs must be flat, plus spec_order. A nested spec is not shown anywhere.
  • In a department, a key becomes a filter only when at least half of its tools have it, with 2 to 12 different values, none longer than 40 characters, and (with four tools or more) not a different value on every tool. A key that fails stays in the product page's spec sheet. The kit rows, "Included Items" and "Tool Platform" are never filters.
  • Outside a department, the spec filters are only the power source and the voltage; Brand, Kit or bare tool, Price and On offer come from the products there too.
  • Brand shows with two brands or more, Kit or bare tool only when the list has kits or bare tools, Price when the prices differ, and On offer when something on the page has a saving.

See Shop Requirements.

A card says "Choose options"

The product has variants. The card's Add sends the shopper to the product page, where the options are chosen. This is by design.

Checkout says "This shop is not taking payment right now"

The shop has no payment method for this currency. Add one in the Selldone dashboard (cash on delivery is fine). Workbench shows this line instead of a Place order button that opens an empty window; the cart is kept.

About, Terms, Privacy or FAQ say "Sample text"

The shop has not written that page yet. The sample is built only from your shop's facts. Write the page (or the FAQ entries) in the Selldone dashboard and the label goes away.

A post ends with no products

The panel in a post shows the products its text links to (/product/<id> links, four at most), else the ones it names. Link the products in the article's text.

Links in a post are underlined

That is by design: links inside a post's own text are the only underlined words in the Layout, so a reader can tell them from the text. Everywhere else no word or icon has a line under it.

The footer's Theme row doesn't show on my shop

That is by design: with themeSwitcher: "showcase" it shows only on the Layout's own showcase shops. Set themeSwitcher: "on" in components/ly/ly-theme.settings.ts to give your visitors the switcher. See Theme and colours.

A palette changes the buttons but the page keeps the brand colours

Every palette re-tints the whole page (bands, plates, lines, words, the dark service strip and footer) through components/ly/ly-family.ts, which builds the family from the palette's seed in LY_SEEDS (from skins/workbench/skin.json). A palette is added in skins/workbench/skin.json (palettes.list: an id, a name and a seed), then node scripts/skin-apply.mjs writes its action colours and the switcher shows it; a palette without a seed is refused there.

Selldone's default purple appears in some places

Those are Selldone's own components using the theme colour. Workbench's switcher writes the palette into --ly-act* and the inherited --bk-act* names, from which the shared tokens (style/kalio-tokens.scss) set --v-theme-primary, and ly-family.ts paints Vuetify's theme colours from the palette's family; if a part still shows Selldone's purple, make it read that variable rather than a fixed colour. To change the colours themselves, use the settings file, not the tokens.

Selldone's header or footer shows instead of Workbench's

The shop has custom header or footer code in Selldone. A shop with its own code keeps Selldone's header or footer (layouts/StorefrontLayout.vue). Remove the custom code to get Workbench's.

I edited style/ly/*.css and my change was lost

base.css, pages.css, look.css and variants.css are the base's own stylesheets (layout-base), shared by every Layout made from it, so a change there belongs in the base (BASE.md), not in one Layout. Put a Workbench change in Workbench's own style/ly/wb.css or style/ly/wb-pages.css (loaded last), or in style/ly-layout.scss. See Customize.

A corner looks round next to a sharp one

Workbench keeps one shape language: a circle for round things, 6 px for panels, cards and photos, 4 px for inner parts, square only where a band meets the window's edge. A part that breaks it is usually one of Selldone's own pieces, or a new rule of yours: map it onto --ly-r-pn or --ly-r-in in style/ly/wb.css, wb-pages.css or style/ly-layout.scss, and run scripts/shape-check.cjs (see Theme and colours).

A product page shows a plain purple page in a headless test

A headless browser opening a /product/ link directly gets Selldone's SEO page. Open the home first and move with the Layout's links, or test in a normal browser or the dev server.

The map in the address sheet is grey or 0 px tall

mapbox-gl.css sets position: relative on the map; its canvas must stay position: absolute (style/kalio-checkout.scss). The address sheet uses the streets-v12 style. Search finds streets and numbers, not landmarks. With the checkout map off, the address sheet is a short form with search instead.

Sticky parts don't stick

Vuetify's .v-application has overflow: hidden, which stops anything sticking. style/ly-layout.scss switches it to overflow: clip (the header and the product page's gallery stick); keep that rule if you restyle the page.

GitHub blocks the push: "Mapbox Secret Access Token"

Selldone's storefront history contains Selldone's public Mapbox browser key (pk.). It has been public in selldone/storefront since 2023. Allow it once with the link GitHub prints, or remove it from your own commits.

A word stays in English after picking another language

If it is your shop's data (a product, department, brand, unit, pros, spec or article), translate it in the Selldone dashboard. If Workbench writes it, it is a string not yet wrapped in t(), or a wb.… word that language does not have yet: wrap it with a new wb.… key and give it that language (Arabic: the skin's words.ar in skins/workbench/skin.json, then node scripts/skin-apply.mjs; another language: its ly.<code>.ts), then build and release. See Customize.

I can't see the Arabic pages on my dev server

The language list is the shop's own. If your shop sells in English only, set localStorage["workbench-dev-languages"] = "ar" in the browser's console on the dev server and reload: Arabic is then offered in the language and currency pill (dev build only).

A red "429 Too Many Attempts" message, or a page that stays empty

Selldone limits how many requests one address may send in a minute. Many test browsers at once (or several Layouts tested from one computer) reach it; shoppers do not. Workbench tries its shared reads up to four times, pausing as Selldone's Retry-After says; wait a minute and reload. Run the checks one at a time.

Clone this wiki locally