v.Latest
Documentation
Contribution Troubleshooting
Loading last updated info...
On This Page
This page is out of date - check out the TinaCMS GitHub for the latest contribution information
Troubleshooting in Development
This section contains solutions to various problems you may run into when developing for the TinaCMS.
I pulled down changes and now my packages won't build
The links between the local packages may have been broken. If this is the problem, then
running npm run bootstrap should fix the issue.
Example error message
sh: cms-scripts: command not found
I can't add dependencies to a package
Linking prevents running npm install from directly inside a package from working. There are two ways to get around this issue.
- Add the package with lernaYou can use lerna to add new dependencies to a package from the root of the repository:
lerna add react --scope @tinacms/react-tinacmsThe downside of this approach is you can only add one dependency at a time. If you need to add many packages, you can use the next method. - Add dependencies manually, then bootstrapThe other approach is to manually add the dependencies to the
package.jsonand then runnpm run bootstrapfrom the root of the repository. - When I run
npm run bsit deletes the contents of a package?This sucks. Try runninglerna cleanand then runningnpm run bsagain.