ionic-team / ionic-team/ionic-cli

Have to remove/add platform on git pull

Ouverte
#1,257 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
Langage dominant
TypeScript
Étoiles
2k
Forks
682
Métriques de merge des PR
Aucune PR mergée en 30 j

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).

Guide de contribution

Ouvrir le guide de contribution

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.