I am using NextJS to update an old NuxtJS site that is pre-slice machine.
It uses the legacy slice builder. I have used the slice machine legacy upgrade tool to upgrade the slices, however, I am unable to figure out how to still support legacy slices that are on existing documents. How can I do this? This is what I see:
Placeholder component for RichTextArea (variation: default) Slices
Could not find a component for Slice type “image_splash”
Could not find a component for Slice type “image_splash”
Could not find a component for Slice type “image_splash”
Could not find a component for Slice type “image_splash”
Could not find a component for Slice type “image_splash”
Could not find a component for Slice type “testimonial”
Could not find a component for Slice type “card_block”
RichTextArea is the new slice generated from a legacy slice called RichTextArea, the upgrade tool and I've edited the document and added it.
I found this post: Migrating Legacy Slices to Slice Machine - Question on Legacy Slice Names
I tried to unpublished/archive a document in the document view, and then republish it via the list view but unfortunately the document still cannot find the legacy slices.
{
"repositoryName": "",
"adapter": "@slicemachine/adapter-next",
"libraries": ["./src/slices"],
"localSliceSimulatorURL": "http://localhost:3000/slice-simulator",
"framework": "next",
"labs": {
"legacySliceUpgrader": true
}
}
"dependencies": {
"@plaiceholder/next": "^3.0.0",
"@prismicio/client": "^7.8.1",
"@prismicio/next": "^1.6.0",
"@prismicio/react": "^2.8.0",
"clsx": "^2.1.1",
"next": "14.2.7",
"plaiceholder": "^3.0.0",
"react": "^18",
"react-dom": "^18",
"react-player": "^2.16.0",
"react-transition-group": "^4.4.5",
"sass": "^1.75.0",
"scss": "^0.2.4",
"sharp": "^0.33.4"
},
"devDependencies": {
"@slicemachine/adapter-next": "^0.3.47",
"@types/node": "^20",
"@types/react": "^18",
"@types/react-dom": "^18",
"@types/react-transition-group": "^4.4.11",
"eslint": "^8",
"eslint-config-next": "14.2.7",
"postcss": "^8",
"slice-machine-ui": "^2.6.0",
"tailwindcss": "^3.4.1",
"typescript": "^5"
}
Thanks!