Statac

Problems explained

Missing folder

error An error stops the build: nothing is published until it is fixed.

statac import was run without the folder of the site to import.

What you’ll see

error  Missing folder: `statac import` needs the folder of the site to import
  Name it after the command: `statac import <folder>`.
  More: https://statac.dev/e/missing-folder/

In the terminal the message also names the file and line where there is one, and marks the exact text.

Why Statac stops

Importing reads a site another tool made and writes a new one beside it, so it needs to know which site. Statac doesn’t take the folder it is run in, since the new site is written beside the old, outside that folder.

How to fix it

Name the old site’s folder after the command, and, if you like, the folder to write the new site into after that.

Example

statac import

To import the site in old into old-statac, beside it:

statac import old

Its name

Namemissing-folder
In the terminalstatac explain missing-folder
To stop showing itIt stops the build, so it can't be quietened.

Something unclear or wrong? Open an issue on GitHub.