Skip to content
Benny Powers - עם ישראל חי! edited this page Jun 21, 2024 · 2 revisions

Welcome to the patternfly-elements wiki!

Troubleshooting

having trouble with the typescript build? We will try to solve them by removing all the build files from the repo.

FIRST COMMIT YOUR CHANGES so you don't lose them, this operation is destructive and may delete uncommitted files.

git clean -dfx -e node_module -e .husky

Explanation:

  • git clean - cleans the working tree (recursively), removing ignored files (i.e. the build artifacts
  • -d - include untracked directories
  • -f - force remove directories
  • -x - only remove files explicitly ignored by git, but (hopefully)
  • -e node_modules - retain the node_modules dir
  • -e .husky - retain the husky dir

While the -x flag should prevent losing changes, we've experienced that it's not always reliable, so COMMIT YOUR CHANGES FIRST before running this command if you don't want to lose them

After that, try running the build or dev server again

npm start
Clone this wiki locally