Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70860

I cant build Blank Starter with --prod --release

$
0
0

After upgrading my app to ionic 6, I could nolonger build it with --prod --release, but the debug version could build. I get this error when I run -

ionic cordova build browser --prod --release

ERROR:

    An unhandled exception occurred: Project target does not exist.
    See "/private/var/folders/4w/rxgf0q7j7qj5hmk2ncvnm5140000gp/T/ng-KU4iG3/angular-errors.log" for further details.
    [ERROR] An error occurred while running subprocess ng.
    
    ng run app:ionic-cordova-build:production --platform=browser exited with
    exit code 127.
    
    Re-running this command with the --verbose flag may provide more
    information.

The log referenced above has this data:

  [error] Error: Project target does not exist.
      at findProjectTarget (/Volumes/Projects/business/cryptoy/node_modules/@angular-devkit/architect/node/node-modules-architect-host.js:49:15)
      at Object.getBuilderName (/Volumes/Projects/business/cryptoy/node_modules/@angular-devkit/architect/node/node-modules-architect-host.js:62:46)
      at WorkspaceNodeModulesArchitectHost.getBuilderNameForTarget (/Volumes/Projects/business/cryptoy/node_modules/@angular-devkit/architect/node/node-modules-architect-host.js:101:35)
      at RunCommand.runSingleTarget (/Volumes/Projects/business/cryptoy/node_modules/@angular/cli/models/architect-command.js:242:55)
      at RunCommand.runArchitectTarget (/Volumes/Projects/business/cryptoy/node_modules/@angular/cli/models/architect-command.js:295:35)
      at RunCommand.run (/Volumes/Projects/business/cryptoy/node_modules/@angular/cli/commands/run-impl.js:15:25)
      at RunCommand.validateAndRun (/Volumes/Projects/business/cryptoy/node_modules/@angular/cli/models/command.js:136:33)
      at async runCommand (/Volumes/Projects/business/cryptoy/node_modules/@angular/cli/models/command-runner.js:224:24)
      at async default_1 (/Volumes/Projects/business/cryptoy/node_modules/@angular/cli/lib/cli/index.js:70:31)

So to make sure the issue was with my code, I installed a new blank app with ionic start newapp blank, and executed a build with —prod and I got the same exact error.

Here is my ionic info:

Ionic:

   Ionic CLI                     : 5.4.16 (/usr/local/lib/node_modules/ionic)
   Ionic Framework               : @ionic/angular 6.0.13
   @angular-devkit/build-angular : 13.2.6
   @angular-devkit/schematics    : 13.2.6
   @angular/cli                  : 13.2.6
   @ionic/angular-toolkit        : 6.1.0

Cordova:

   Cordova CLI       : 11.0.0
   Cordova Platforms : browser 6.0.0
   Cordova Plugins   : cordova-plugin-ionic-keyboard 2.2.0, cordova-plugin-ionic-webview 5.0.0, (and 3 other plugins)

Utility:

   cordova-res : 0.15.4
   native-run  : not installed

System:

   NodeJS : v14.15.5 (/usr/local/bin/node)
   npm    : 6.14.11
   OS     : macOS Mojave

I appreciate your time and help, thank you!
Philip.

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 70860

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>