I’m working with SvelteKit and recently restructured my slices for better organization due to an increasing number of slices. I added new paths for slices and created a new slice using Slice Machine within one of the new paths.
However, when I try to simulate the slice, the simulator shows a blank page, and I get the following warning in the console:
[SliceZone] Could not find a component for Slice type "..."
Role: Developer
Hosting provider: localhost
Package.json file:
{
"name": "...",
"private": true,
"version": "0.0.1",
"type": "module",
"scripts": {
"dev": "concurrently \"pnpm:vite:dev\" \"pnpm:slicemachine\" --prefix-colors blue,magenta",
"vite:dev": "vite dev --port 5199",
"build": "vite build",
"preview": "vite preview",
"check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",
"format": "prettier --write .",
"lint": "prettier --check . && eslint .",
"slicemachine": "start-slicemachine"
},
"devDependencies": {
"@eslint/compat": "^1.2.4",
"@slicemachine/adapter-sveltekit": "^0.3.61",
"@sveltejs/adapter-vercel": "^5.5.2",
"@sveltejs/enhanced-img": "^0.4.4",
"@sveltejs/kit": "^2.15.2",
"@sveltejs/vite-plugin-svelte": "^5.0.3",
"autoprefixer": "^10.4.20",
"concurrently": "^9.1.2",
"eslint": "^9.17.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-svelte": "^2.46.1",
"globals": "^15.14.0",
"prettier": "^3.4.2",
"prettier-plugin-svelte": "^3.3.2",
"prettier-plugin-tailwindcss": "^0.6.9",
"slice-machine-ui": "^2.11.1",
"svelte": "^5.17.3",
"svelte-check": "^4.1.3",
"svelte-simples": "^1.0.3",
"tailwind-merge": "^2.6.0",
"tailwind-variants": "^0.3.0",
"tailwindcss": "^3.4.17",
"tailwindcss-animate": "^1.0.7",
"typescript": "^5.7.3",
"typescript-eslint": "^8.19.1",
"vite": "^6.0.7"
},
"dependencies": {
"@iconify/svelte": "^4.2.0",
"@inlang/paraglide-sveltekit": "^0.15.4",
"@prismicio/client": "^7.14.0",
"@prismicio/svelte": "^1.3.1",
"@tailwindcss/container-queries": "^0.1.1",
"@tailwindcss/forms": "^0.5.10",
"@tailwindcss/typography": "^0.5.16",
"@types/three": "^0.172.0",
"bits-ui": "1.0.0-next.77",
"clsx": "^2.1.1",
"gsap": "^3.12.5",
"lucide": "^0.470.0",
"lucide-svelte": "^0.470.0",
"mode-watcher": "^0.5.0",
"simplex-noise": "^4.0.3",
"three": "^0.172.0"
}
}
slicemachine.config.json file:
{
"repositoryName": "...",
"adapter": "@slicemachine/adapter-sveltekit",
"libraries": [
"./src/lib/slices",
"./src/lib/slices/MegaMenu",
"./src/lib/slices/Sections",
"./src/lib/slices/Features"
],
"localSliceSimulatorURL": "http://localhost:5199/slice-simulator"
}
Steps to reproduce
-
Add a new slice folder and update the slicemachine.config.json file to include the new paths.
-
Create a new slice using Slice Machine within the newly added path.
-
Attempt to simulate the slice.
-
Observe the blank screen and console warning.