Slice Machine generates .slicemachine folder but not files

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

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.

Can you tell us what technology you are using?

ah sorry - nextjs - all on the new libraries

  "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"
1 Like

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.

@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?

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