I was following this guide Angular-Monorepo concepts but when I run ionic capacitor add ios or ionic capacitor add android I got this output:
[capacitor] [error] The Capacitor CLI needs to run at the root of an npm package or in a valid NX monorepo.
[capacitor] Make sure you have a package.json or project.json file in the directory where you run the Capacitor CLI.
[capacitor] More info: https://docs.npmjs.com/cli/init
[capacitor] Missing appId for new platform.
[capacitor] Please add it in capacitor.config.json or run npx cap init.
[ERROR] An error occurred while running subprocess capacitor.
Description:
Problem with angular workspaces
Steps to Reproduce:
I was following this guide Angular-Monorepo concepts but when I run ionic capacitor add ios or ionic capacitor add android I got this output:
Output:
My
ionic info
:Other Information: sample app