ionic-team / ionic-app-scripts

App Build Scripts for Ionic Projects
http://ionicframework.com/
MIT License
608 stars 302 forks source link

ionic-app-scripts build: \src\app\main.ts was not found. #1505

Open davidquintard opened 5 years ago

davidquintard commented 5 years ago

Hi there, In @ionic/angular 4.0.0-rc.0, main.ts is located in /src, not in /src/app anymore.

nvahalik commented 5 years ago

Edit the config of your package.json to tell it the correct path:

{
  ...
  "config": {
    "ionic_app_entry_point": "src/main.ts"
  },
  ...
}

Actually, I just tried this and from what I'm reading online, it looks like ionic-app-scripts isn't supported for 4.x.

marckassay commented 5 years ago

@nvahalik I also conclude it isn't supported for 4.x., after it failed to find v3's ionic-angular dependency:

Error: ENOENT: no such file or directory, open 
  'E:\demos\demo5\node_modules\ionic-angular\package.json'