DEV Community

Discussion on: Build Cross-Platform Applications in a Monorepo with Nx, Ionic, and Capacitor

Collapse
 
derhodrig profile image
derHodrig • Edited

Hello,
I really enjoy your guide, but i got a problem.
I have an existing nx monorepo with a single angular app. So i followed your guide from the point "Add Capacitor to Existing Project"

I run this command

nx generate @nxtend/capacitor:capacitor-project acs-capacitor --project acsweb
Enter fullscreen mode Exit fullscreen mode

And after that i just want to execute this command

nx run acs-capacitor:add --platform android
Enter fullscreen mode Exit fullscreen mode

but i ran into an error. It seems this command can not find "my-cap-app". In my Git tool i saw, that the only changes are made to angular.json, package.json, .gitignore and capacitor.config.json

So there is really no my-cap-app project.

Did i something wrong?

capacitor.config.json

{
  "appId": "io.q-soft.capacitor",
  "appName": "ACS-Capacitor",
  "bundledWebRuntime": false,
  "npmClient": "npm",
  "webDir": "../../dist/apps/acsweb",
  "plugins": {
    "SplashScreen": {
      "launchShowDuration": 0
    }
  },
  "cordova": {}
}
Enter fullscreen mode Exit fullscreen mode