Skip to content

chore(docs): mentioning to delete the cache file #1350

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion packages/docs/src/docs/editing-source-files.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,10 @@ In the Node version of Pattern Lab you can modify the following configuration op
}
```

## Problems after changing the structure

If you're doing bigger changes, especially to the file and folder structure, and recognize some errors on the console like, e.g. `TypeError: Cannot read property 'render' of undefined` or `Error building BuildFooterHTML`, it's recommended to stop pattern lab, delete the cache file `dependencyGraph.json` within the root of the project and start pattern lab again, as these changes might conflict with the existing cache structures.

## Watching for Source File Changes

Manually generating the Pattern Lab website after each change can be cumbersome. The Node version of Pattern Lab comes with the ability to watch files in the `./source/` directory for changes and re-generate the site automatically. The Pattern Lab website can also be automatically reloaded..
Manually generating the Pattern Lab website after each change can be cumbersome. The Node version of Pattern Lab comes with the ability to watch files in the `./source/` directory for changes and re-generate the site automatically. The Pattern Lab website can also be automatically reloaded.