-
Notifications
You must be signed in to change notification settings - Fork 21
Troubleshooting Build Failures
Chris Llanwarne edited this page Jul 18, 2023
·
3 revisions
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!
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
andyarn dedupe
yarn cache clear
rm -rf node_modules/.cache
Terra UI Wiki.
- Getting Started
- Contributor Guide
- Intro to UI Development
- Troubleshooting Build Failures
- Editor Configuration
- BEEs
- Pull Requests
- How to Find a PR Site
- Feature Flags
- Mixpanel
- Cobranding and White-Label Sites
- Using Terra UI packages in other projects