# Slice Machine generates .slicemachine folder but not files

**URL:** <https://community.prismic.io/t/slice-machine-generates-slicemachine-folder-but-not-files/8685>\
**Category:** Developing with Prismic\
**Tags:** slice-machine\
**Created:** [January 16, 2022, 4:03am UTC](https://community.prismic.io/t/slice-machine-generates-slicemachine-folder-but-not-files/8685 "2022-01-16T04:03:23Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![beamer](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/beamer/32/1078_2.png) [@beamer](https://community.prismic.io/u/beamer)\
**Post date:** [January 16, 2022, 4:03am UTC](https://community.prismic.io/t/slice-machine-generates-slicemachine-folder-but-not-files/8685/1 "2022-01-16T04:03:23Z")

</div>

@Fares  
It seems generates the folders but not the files.

I can't seem to get them back without reverting - is there a way to force regenerate them? if so will just move that into my flow

---

<div class="post-metadata">

**Author:** ![Fares](https://avatars.discourse-cdn.com/v4/letter/f/71e660/32.png) [@Fares](https://community.prismic.io/u/Fares)\
**Post date:** [January 17, 2022, 7:59am UTC](https://community.prismic.io/t/slice-machine-generates-slicemachine-folder-but-not-files/8685/2 "2022-01-17T07:59:26Z")

</div>

Hi @beamer,  
Thanks for reaching out, I will try to troubleshoot this issue, but first I will move this to a new thread as I believe this question can be an independent topic by itself and I will respond there.

---

<div class="post-metadata">

**Author:** ![Fares](https://avatars.discourse-cdn.com/v4/letter/f/71e660/32.png) [@Fares](https://community.prismic.io/u/Fares)\
**Post date:** [January 17, 2022, 8:02am UTC](https://community.prismic.io/t/slice-machine-generates-slicemachine-folder-but-not-files/8685/3 "2022-01-17T08:02:11Z")

</div>

Can you tell us what technology you are using?

---

<div class="post-metadata">

**Author:** ![beamer](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/beamer/32/1078_2.png) [@beamer](https://community.prismic.io/u/beamer)\
**Post date:** [January 17, 2022, 7:50pm UTC](https://community.prismic.io/t/slice-machine-generates-slicemachine-folder-but-not-files/8685/5 "2022-01-17T19:50:46Z")

</div>

ah sorry - nextjs - all on the new libraries

```json
{
  "name": "bay",
  "private": true,
  "scripts": {
    "dev": "next dev",
    "build": "next build",
    "start": "next start",
    "lint": "next lint",
    "slicemachine": "start-slicemachine",
    "sm": "start-slicemachine",
    "storybook": "start-storybook -p 6006",
    "build-storybook": "build-storybook"
  },
  "dependencies": {
    "@prismicio/client": "^6.0.0",
    "@prismicio/helpers": "^2.0.0",
    "@prismicio/next": "^0.0.1",
    "@prismicio/react": "^2.0.2",
    "@tailwindcss/aspect-ratio": "^0.4.0",
    "@tailwindcss/typography": "^0.5.0",
    "@types/react-imgix": "^9.3.1",
    "autoprefixer": "^10.4.2",
    "graphql-tag": "^2.12.6",
    "next": "12.0.8",
    "next-slicezone": "^0.1.3",
    "phosphor-react": "^1.4.0",
    "postcss": "^8.4.5",
    "react": "17.0.2",
    "react-dom": "17.0.2",
    "react-imgix": "^9.3.0",
    "react-lazyload": "^3.2.0",
    "tailwindcss": "^3.0.13"
  },
  "devDependencies": {
    "@babel/core": "^7.16.7",
    "@storybook/addon-actions": "^6.5.0-alpha.17",
    "@storybook/addon-essentials": "^6.5.0-alpha.17",
    "@storybook/addon-links": "^6.5.0-alpha.17",
    "@storybook/addon-postcss": "^2.0.0",
    "@storybook/builder-webpack5": "^6.5.0-alpha.17",
    "@storybook/manager-webpack5": "^6.5.0-alpha.17",
    "@storybook/react": "^6.5.0-alpha.17",
    "@types/node": "17.0.8",
    "@types/react": "17.0.38",
    "babel-loader": "^8.2.3",
    "eslint": "8.6.0",
    "eslint-config-next": "12.0.8",
    "eslint-plugin-storybook": "^0.5.5",
    "slice-machine-ui": "^0.1.2",
    "typescript": "4.5.4",
    "webpack": "5"
  }
}

```

---

<div class="post-metadata">

**Author:** ![Fares](https://avatars.discourse-cdn.com/v4/letter/f/71e660/32.png) [@Fares](https://community.prismic.io/u/Fares)\
**Post date:** [February 3, 2022, 10:31am UTC](https://community.prismic.io/t/slice-machine-generates-slicemachine-folder-but-not-files/8685/6 "2022-02-03T10:31:02Z")

</div>

Hi @beamer,  
I apologize for the long delay. Have you been able to solve this issue, or do you still need some help?

If you haven't been able to solve the issue yet, please provide us with any errors and some code snippets of slices that you are want to generate mocks for.

It will also be useful if you can share a zip file of your project code in a private message to be able to debug the issue.

---

<div class="post-metadata">

**Author:** ![beamer](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/beamer/32/1078_2.png) [@beamer](https://community.prismic.io/u/beamer)\
**Post date:** [February 5, 2022, 8:57am UTC](https://community.prismic.io/t/slice-machine-generates-slicemachine-folder-but-not-files/8685/7 "2022-02-05T08:57:17Z")

</div>

@Fares thanks for checking in. What's the best practice here in general?

gitignore `.slicemachine/`, and `yarn slicemachine` should generate it if it doesn't exist?

---

<div class="post-metadata">

**Author:** ![Fares](https://avatars.discourse-cdn.com/v4/letter/f/71e660/32.png) [@Fares](https://community.prismic.io/u/Fares)\
**Post date:** [February 7, 2022, 5:38pm UTC](https://community.prismic.io/t/slice-machine-generates-slicemachine-folder-but-not-files/8685/8 "2022-02-07T17:38:31Z")

</div>

Hi @beamer,  
Yes exactly, as you know adding `slicemachine` to gitignore will not prevent the generation.
