Prismic has encountered an error, when I access the newly created repository

Hello, when I access the newly created repository in Prismic, I get this error: Prismic has encountered an error

This is the step-by-step of what I did:

  • I created a Nux Project
  • I ran the configuration command (slicemachine)
  • I created a new repository, following the steps in the terminal.
  • I opened Slice Machine, created a document (Page type) and after creating it, when accessing Page Builder, I got the error "Prismic has encountered an error" and the browser console returns "Error: Cannot find a master locale."

I am quite familiar with the process and have done it several times in many projects. It was expected that at this point, I would select the language, so that I could then start creating the documents in Page Builder.

What did I try to do to solve the problem and it didn't work?

  • Activate Legacy Builder
  • Add a locale through the URL settings/multi-languages/
  • Create a document by accessing the URL builder/pages/new?custom_type=home&locale=en-us, I can open the URL, but when I click Save, I get an error, probably because there is no master language.
  • This error has been happening since Friday, I tried again today (Monday) and it didn't work. I've already created the project and the repository several times and it always gives an error, even trying with different names.

This is my package.json

I believe it's a problem with Page Builder. Could you help me?

Thank you.

I also get this error a lot when I am using Chrome. Switching to Firefox I have not had this issue. I also find that sometimes clearing cookies in Chrome will get this error to go away.

Hi @asummers,

Thanks for the response.

I am using Chrome, I logged into Prismic via Firefox, with cleared cookies, and when I clicked on the repository, I got the error message. Unfortunately, it didn't work for me.

Ugh, sorry. I was hoping it would work for you too. Maybe Prismic will have a better official solution.

1 Like

I finally managed to solve my problem. I had to create the repository directly on the Prismic website, instead of doing it via CLI, which is how it is described in the documentation.

This way, I have me the opportunity to choose a default language, which was the cause of the problem.

Then, I had to link the repository to the project using the command:

npx @slicemachine/init@latest --repository name-of-the-repository

If you would like to remove the broken repo, you can still access the settings page directly at:
https://your-repo-name.prismic.io/settings/reset/

1 Like