Closed fredroo closed 4 years ago
Thanks for the issue. You have multiple versions of Ionic Framework installed.
The ionic-angular
dependency is Ionic Framework v3 and not compatible with newer versions of Angular. The @ionic/angular
dependency is Ionic Framework v5+ and compatible with newer versions of Angular.
If you want to use newer versions of Angular, you will need to upgrade your Ionic app to Ionic Framework v5+
@liamdebeasi thanks the same error after uninstall ionic-angular take a look on build error ionic build
ionic-app-scripts.cmd build [16:19:50] ionic-app-scripts 3.2.4 [16:19:50] build dev started ... [16:19:50] ionic-app-script task: "build" [16:19:50] Error: ENOENT: no such file or directory, open 'C:\xampp\htdocs\app-reciklado-ionic\node_modules\ionic-angular\package.json' Error: ENOENT: no such file or directory, open 'C:\xampp\htdocs\app-reciklado-ionic\node_modules\ionic-angular\package.json' [ERROR] An error occurred while running subprocess ionic-app-scripts.
ionic-app-scripts.cmd build exited with exit code 1.
Re-running this command with the --verbose flag may provide more information.
Please see our migration guide: https://ionicframework.com/docs/reference/migration#migrating-from-ionic-3-0-to-ionic-4-0
When migrating to Ionic Framework 4.0+ you should not be using ionic-app-scripts. For any issues you may run into while migrating, I recommend you post on the Ionic Forums. This GitHub issue tracker is not intended for support questions. Thanks!
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.
Bug Report
[x] 5.4.16
Current behavior: return error
Expected behavior: build successfully and run on browser Steps to reproduce: ionic serve Related code:
Other information:
Ionic info: