Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 49115

Using angular ionic within Nrwl NX monorepo

$
0
0

I’m trying to create an Ionic Angular project within Nx Monorepo.

I’m able to initialize it and it opens successfully in browser, but running it on an emulator or real device results in net::ERR_CONNECTION_REFUSED error

I believe it’s related to some incorrect path somewhere…

Steps to reproduce

  1. create nx workspace with command:
    npx create-nx-workspace testProject
    (create empty project)
  2. than install @nrwl/angular
    npm install --save-dev @nrwl/angular
  3. nx g @nrwl/angular:app mobile --routing
  4. ng add @ionic/angular --project=mobile
  5. ionic init "mobile" --type=angular
  6. ionic integrations enable cordova –add
  7. Then run the app on emulator with ionic cordova emulate android --project=mobile

Here’s the repository with the code sample: https://github.com/tokarkin/ionic-nx

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 49115

Trending Articles



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