When creating a new repository, both the minimal starter and full website starter repos for Sveltekit dont seem to function correctly after the Migration API update yesterday.
I'm a new developer and I have been learning how to use Prismic which has involved making and deleting repos to poke around and learn hence why I noticed this today.
I imagine this is just an issue of waiting until its updated?
lihbr
(Lucie)
September 26, 2024, 11:15am
2
Hi @brandon.ohboil , I just double-checked SvelteKit starters but unfortunately, I'm not seeing any issues with Svelte starters.
What Node version, package manager, and process are you following when setting up a repository with a starter?
Thanks,
Lucie
1 Like
npm: 10.8.3
node: 20.17.0
Attempting to use the full site starter, I am given the npx code to run which seems to perform without issue. Prompted to launch slicemachine which works, but nothing seems to be syncd to the page builder
Running npm run dev in the new repo returns this
`[vite:dev] ParsingError: [Link resolver error] Unknown type β
β[vite:dev] Declared type: page β
β[vite:dev] Expected one of: β
β[vite:dev] β
β[vite:dev] [Link resolver error] Unknown type β
β[vite:dev] Declared type: page β
β[vite:dev] Expected one of: β
β[vite:dev] β
β[vite:dev] [Link resolver error] Unknown type β
β[vite:dev] Declared type: settings β
β[vite:dev] Expected one of: β
β[vite:dev] β
β[vite:dev] [Link resolver error] Unknown type β
β[vite:dev] Declared type: navigation β
β[vite:dev] Expected one of: β
β[vite:dev] β
β[vite:dev] at Client.fetch (file:///home/bingus/Documents/projects/sitefuldemo/node_modules/@prismicio/client/dist/Client.js:1173:15) β
β[vite:dev] at process.processTicksAndRejections (node:internal/process/task_queues:95:5) β
β[vite:dev] at async Client.getFirst (file:///home/bingus/Documents/projects/sitefuldemo/node_modules/@prismicio/client/dist/Client.js:282:20) β
β[vite:dev] at async Client.getSingle (file:///home/bingus/Documents/projects/sitefuldemo/node_modules/@prismicio/client/dist/Client.js:543:12) β
β[vite:dev] at async load (/home/bingus/Documents/projects/sitefuldemo/src/routes/+layout.server.ts:8:19) β
β[vite:dev] at async Module.load_server_data (/home/bingus/Documents/projects/sitefuldemo/node_modules/@sveltejs/kit/src/runtime/server/page/load_data.js:61:17) β
β[vite:dev] at async eval (/home/bingus/Documents/projects/sitefuldemo/node_modules/@sveltejs/kit/src/runtime/server/page/index.js:140:13) { β
β[vite:dev] url: 'https://sitefuldemo.cdn.prismic.io/api/v2/documents/search?q=%5B%5Bat%28document.type%2C+%22settings%22%29%5D%5D&pageSize=1&ref=ZvWRORIAACcAs2nX&routes=%5B%7B%22type%22%3A%22page%22%2C%22pβ
βath%22%3A%22%2F%3Auid%22%7D%2C%7B%22type%22%3A%22page%22%2C%22uid%22%3A%22home%22%2C%22path%22%3A%22%2F%22%7D%2C%7B%22type%22%3A%22settings%22%2C%22path%22%3A%22%2F%22%7D%2C%7B%22type%22%3A%22navigation%22%2β
βC%22path%22%3A%22%2F%22%7D%5D&x-c=js-7.11.0&x-d=1', β
β[vite:dev] response: { β
β[vite:dev] type: 'Link resolver error', β
β[vite:dev] message: '[Link resolver error] Unknown type\n' + β
β[vite:dev] 'Declared type: page\n' + β
β[vite:dev] 'Expected one of:\n' + β
β[vite:dev] '\n' + β
β[vite:dev] '[Link resolver error] Unknown type\n' + β
β[vite:dev] 'Declared type: page\n' + β
β[vite:dev] 'Expected one of:\n' + β
β[vite:dev] '\n' + β
β[vite:dev] '[Link resolver error] Unknown type\n' + β
β[vite:dev] 'Declared type: settings\n' + β
β[vite:dev] 'Expected one of:\n' + β
β[vite:dev] '\n' + β
β[vite:dev] '[Link resolver error] Unknown type\n' + β
β[vite:dev] 'Declared type: navigation\n' + β
β[vite:dev] 'Expected one of:\n' β
β[vite:dev] } β
β[vite:dev] } β
β[vite:dev] ParsingError: [Link resolver error] Unknown type β
β[vite:dev] Declared type: page β
β[vite:dev] Expected one of: β
β[vite:dev]
[vite:dev] [Link resolver error] Unknown type β
β[vite:dev] Declared type: page β
β[vite:dev] Expected one of: β
β[vite:dev] β
β[vite:dev] [Link resolver error] Unknown type β
β[vite:dev] Declared type: settings β
β[vite:dev] Expected one of: β
β[vite:dev] β
β[vite:dev] [Link resolver error] Unknown type β
β[vite:dev] Declared type: navigation β
β[vite:dev] Expected one of: β
β[vite:dev] β
β[vite:dev] at Client.fetch (file:///home/bingus/Documents/projects/sitefuldemo/node_modules/@prismicio/client/dist/Client.js:1173:15) β
β[vite:dev] at process.processTicksAndRejections (node:internal/process/task_queues:95:5) β
β[vite:dev] at async Client.getFirst (file:///home/bingus/Documents/projects/sitefuldemo/node_modules/@prismicio/client/dist/Client.js:282:20) β
β[vite:dev] at async Client.getSingle (file:///home/bingus/Documents/projects/sitefuldemo/node_modules/@prismicio/client/dist/Client.js:543:12) β
β[vite:dev] at async load (/home/bingus/Documents/projects/sitefuldemo/src/routes/+layout.server.ts:8:19) β
β[vite:dev] at async Module.load_server_data (/home/bingus/Documents/projects/sitefuldemo/node_modules/@sveltejs/kit/src/runtime/server/page/load_data.js:61:17) β
β[vite:dev] at async eval (/home/bingus/Documents/projects/sitefuldemo/node_modules/@sveltejs/kit/src/runtime/server/page/index.js:140:13) { β
β[vite:dev] url: 'https://sitefuldemo.cdn.prismic.io/api/v2/documents/search?q=%5B%5Bat%28document.type%2C+%22settings%22%29%5D%5D&pageSize=1&ref=ZvWRORIAACcAs2nX&routes=%5B%7B%22type%22%3A%22page%22%2C%22pβ
βath%22%3A%22%2F%3Auid%22%7D%2C%7B%22type%22%3A%22page%22%2C%22uid%22%3A%22home%22%2C%22path%22%3A%22%2F%22%7D%2C%7B%22type%22%3A%22settings%22%2C%22path%22%3A%22%2F%22%7D%2C%7B%22type%22%3A%22navigation%22%2β
βC%22path%22%3A%22%2F%22%7D%5D&x-c=js-7.11.0&x-d=1', β
β[vite:dev] response: { β
β[vite:dev] type: 'Link resolver error', β
β[vite:dev] message: '[Link resolver error] Unknown type\n' + β
β[vite:dev] 'Declared type: page\n' + β
β[vite:dev] 'Expected one of:\n' + β
β[vite:dev] '\n' + β
β[vite:dev] '[Link resolver error] Unknown type\n' + β
β[vite:dev] 'Declared type: page\n' + β
β[vite:dev] 'Expected one of:\n' + β
β[vite:dev] '\n' + β
β[vite:dev] '[Link resolver error] Unknown type\n' + β
β[vite:dev] 'Declared type: settings\n' + β
β[vite:dev] 'Expected one of:\n' + β
β[vite:dev] '\n' + β
β[vite:dev] '[Link resolver error] Unknown type\n' + β
β[vite:dev] 'Declared type: navigation\n' + β
β[vite:dev] 'Expected one of:\n' β
β[vite:dev] } β
β[vite:dev] }
updating my node version seems to have fixed it sorry for the inconvenience!
2 Likes
lihbr
(Lucie)
September 27, 2024, 11:07am
5
No worries! It's weird it didn't work with Node 20, we'll investigate