ionic-team / ionic-team/angular-toolkit
Wrong build path on Windows 10
- Langage dominant
- TypeScript
- Étoiles
- 73
- Forks
- 34
- Merge moyen
- 6 min
- PR mergées (30 j)
- 5
Description
Summary
Build path is wrong on windows 10. It create a C folder like `C:/C/path/to/project/www`
Steps to reproduce
Using @ionic/angular-toolkit@1.4.1
Run ìonic cordova build Android` on Windows 10
Fix
In angular-toolkit/builders/cordova-build/index.ts, line 56
Replace :
```
browserOptions.outputPath = join(cordovaBasePath, normalize('www'));
```
By :
```
browserOptions.outputPath = getSystemPath(join(cordovaBasePath, normalize('www')));
```
otherwise, outputPath get the following value : `/C/path/to/project/www`
Guide de contribution
Ouvrir le guide de contribution
Piste de recherche
In angular-toolkit/builders/cordova-build/index.ts at line 56, inspect how the Cordova build outputPath is formed. Reproduce the issue with @ionic/angular-toolkit@1.4.1 by running the Android build on Windows 10, then verify that the generated path does not add an extra C directory before the project path.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- angular, typescript
- Domaine
- build-system, cli
- Type d'issue
- Bug
- Difficulté
- 2/5
- Temps estimé
- 1-3 heures
- Activité
- À l'abandon
- Clarté
- Clairement spécifiée
- Accessibilité débutants
- 50/100