Skip to content

Troubleshooting Build Failures

Chris Llanwarne edited this page Jul 18, 2023 · 3 revisions

Failures from prettier

You can auto-fix most problems reported by prettier by using the lint tool itself: yarn eslint --max-warnings=0 --fix

If that doesn't work, go to the files themselves and address the concerns manually.

Note: During testing it's possible to temporarily ignore lint issues. I can't remember how though. Maybe ask in #terra-ui channel and fill in the answer here!

Module not found

Example: Module not found: Error: Can't resolve '/Users/username/repos/terra-ui/.yarn/cache/@babel-runtime-npm-...

Assuming the branch builds in CI this is likely a caching issue. Here are a few things to try (in order of drastic-ness):

  • yarn install and yarn dedupe
  • yarn cache clear
  • rm -rf node_modules/.cache
Clone this wiki locally