ionic-team / ionic-team/ionic-cli

Blank Project ERR_FILE_NOT_FOUND

Aperta
#4,421 9 commenti 0 reazioni 0 assegnatari Vedi su GitHub
triage
Lingua principale
TypeScript
Stelle
2k
Fork
682
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

**Description:**
When creating a blank cordova project with the latest Ionic cli (6.7.0) and running it on android
the app doesn't load.

**Steps to Reproduce:**
```
ionic start project-name blank --cordova --type=angular
ionic cordova platform add android
ionic cordova build android
```

Then check the chrome console and see:
```
Failed to load resource: net::ERR_FILE_NOT_FOUND /polyfills-es2015.js:1
Failed to load resource: net::ERR_FILE_NOT_FOUND /styles-es2015.js:1
Failed to load resource: net::ERR_FILE_NOT_FOUND cordova.js:1
Failed to load resource: net::ERR_FILE_NOT_FOUND /vendor-es2015.js:1
Failed to load resource: net::ERR_FILE_NOT_FOUND /main-es2015.js:1
Failed to load resource: net::ERR_FILE_NOT_FOUND /assets/icon/favicon.png:1
```

**My `ionic info`:**

```
Ionic:

Ionic CLI : 6.7.0 (/Users/mluz/.npm/_npx/67980/lib/node_modules/@ionic/cli)
Ionic Framework : @ionic/angular 5.1.0
@angular-devkit/build-angular : 0.803.26
@angular-devkit/schematics : 8.3.26
@angular/cli : 8.3.26
@ionic/angular-toolkit : 2.2.0

Cordova:

Cordova CLI : 7.0.1
Cordova Platforms : android 6.2.3
Cordova Plugins : cordova-plugin-ionic-keyboard 2.2.0, cordova-plugin-ionic-webview 4.2.1, (and 4 other plugins)

Utility:

cordova-res : 0.14.0
native-run : 1.0.0

System:

Android SDK Tools : 26.1.1 (/Users/mluz/Library/Android/sdk)
ios-deploy : 1.9.1
ios-sim : 6.0.0
NodeJS : v14.0.0 (/Users/mluz/.nvm/versions/node/v14.0.0/bin/node)
npm : 6.14.4
OS : macOS Mojave
Xcode : Xcode 11.3.1 Build version 11C504
```

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

Reproduce the failure with the listed Ionic commands, then inspect the generated Android project's web asset paths and the blank Angular project's build output. Done means the blank project launches on Android without the reported ERR_FILE_NOT_FOUND errors for scripts, cordova.js, styles, or the favicon.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
android, angular, node.js, typescript
Ambito
build-system, cli, mobile
Tipo di issue
Bug
Difficoltà
4/5
Tempo stimato
3-5 giorni
Stato di attività
Ferma
Chiarezza
Da chiarire
Idoneità per principianti
30/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.