Describe your question/issue in detail
I tried following the following tutorial regarding Localization with Prismic in Next.js: https://prismic.io/blog/nextjs-i18n
And for some reason, the sample content (documents), does NOT show up in the repo after following all the steps. This also goes for the repo GitHub - prismicio-community/nextjs-starter-prismic-multi-language: Multi-language project with Next.js & Prismic .. I successfully hook it up to a Prismic repo, but no sample data..
For this topic's continuation: I cloned the repo like so: npx @slicemachine/init@latest --repository <your repository name> --starter prismic-i18n-tutorial
(yes, with the matching repo name I created).
That said, I created a few documents myself and continued through the tutorial and ended up making the app with locales work. (See the public repo: GitHub - HalloJo/next-prismic-locale).
BUT
I keep getting the following errors when switching between languages (which works by the way):
I would like to paste the code of my [lang]/[uid]/page.tsx
in here, but that would make it too bulky IMO. I also followed the link Dynamic APIs are Asynchronous | Next.js to read about the error, but that makes me none the wiser.
Recap:
- 2 errors; No sample content/data when cloning prismic repos and the error regarding awaiting, but it does work.
Is there something I overlooked, as I am already awaiting the params/props?
Thanks in advance for the help!