ionic-team / ionic-team/ionic-cli

Have to remove/add platform on git pull

Open
#1,257 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
2k
Forks
682
PR merge metrics
No merged PRs in 30d

Description

Every time someone on our team pulls from our project git repo, `ionic build ios` starts throwing `Error: Cannot find module 'cordova-common'` errors. The fix seems to be `ionic platform remove ios && ionic platform add ios`. We've tried committing the resulting changes, but the next time someone pulls, the error comes back on their machine. I even tried a completely fresh Mac OS install with latest versions of all dependencies; both `ionic build ios` and `ionic emulate ios` failed until ios was removed/added back.

Is there something obvious about .gitignore, cordova, npm, or other best practices that I'm missing? It doesn't look like any of the paths are hardcoded or anything weird like that (which I've seen in some platforms/package managers, which required silly hooks in the repo to avoid).

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.