Error running prismic sm --setup: ENOENT: no such file or directory, scandir

Hello dear Prismic community,
I wanted to add slices to my project, but unfortunately, I'm already stuck at the set-up. Not sure, if I'm not understanding it correctly.

Workflow:

  • I have created a new next js project
  • I logged into prismic via terminal
  • I run prismic sm --setup in my project folder and instead of getting promted to create a new repo, this is error logs in my terminal: ERROR ENOENT: no such file or directory, scandir '/Users/******/***/***/*****/nextjs-prismic-slices/custom_types'

I've used both CLI the latest one and prismic-cli@3.8.3-beta.0 but I still get the same error. Do I need to do something before running the setup command?

Okay I've got it running! The problem was, that my folder structure was different because I was using a a boilerplate and I had my components etc. in a /src folder. :slight_smile:

Hi Rebecca,

Welcome to the community!

I'm glad you figured this out. Let us know if you need anything else.

Thanks.