# Creating slice error

**URL:** <https://community.prismic.io/t/creating-slice-error/18170>\
**Category:** Developing with Prismic\
**Tags:** nextjs, slice-machine\
**Created:** [December 23, 2024, 8:02pm UTC](https://community.prismic.io/t/creating-slice-error/18170 "2024-12-23T20:02:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![projectworktech](https://avatars.discourse-cdn.com/v4/letter/p/b19c9b/32.png) [@projectworktech](https://community.prismic.io/u/projectworktech)\
**Post date:** [December 23, 2024, 8:02pm UTC](https://community.prismic.io/t/creating-slice-error/18170/1 "2024-12-23T20:02:08Z")

</div>

I am using next.js to create website while following dark theme tutorial. I am getting unexpected error happened while creating a slice. I tried different names and close the entire program and rerun the program. It did not work.

---

<div class="post-metadata">

**Author:** ![Ezekiel](https://avatars.discourse-cdn.com/v4/letter/e/848f3c/32.png) [@Ezekiel](https://community.prismic.io/u/Ezekiel)\
**Post date:** [December 24, 2024, 9:11am UTC](https://community.prismic.io/t/creating-slice-error/18170/2 "2024-12-24T09:11:26Z")

</div>

Hi @projectworktech,

Welcome to the community 🙂 Can you show me what the errors are?
