Are there instructions for how to link to the nightly Ionic2 build from your Ionic2 app code development environment?
I tried the following, which almost works (getting some weird runtime/startup/bootstrapping errors right now, ignoring those errors for now and just asking whether this build process seems correct):
edit package.json to remove ionic-angular dependency and replace the dependencies section in your package.json to be the same as the dependencies section of the ionic repository’s package.json. (don’t forget to npm install after editing the file).
remove your project’s ./node_modules/ionic-angular directory and replace it with a link to the dist directory of the ionic repository you’ve just built. E.g, if you are at your project’s home directory and the Ionic source code repository is in ../ionic, then type /bin/rm -fr node_modules/ionic-angular; ln -s ../ionic/dist node_modules/ionic-angular
Does this series of steps to work/link with nightly in your project make sense?
I had trouble with npm link as you described it in your post in this discussion. It created /usr/local/lib/node_modules/ionic2 instead of /usr/local/lib/node_modules/ionic-angular. Since I had to change that link manually to ‘ionic-angular’ (or else I would have had to change every ‘ionic-angular’ all over the code to ‘ionic2’) and since npm link just creates symlinks anyway, I created those symlinks manually via the original bullet list step at the top and it worked.
UPDATE:
So the problem is not the building and linking. It’s that some things don’t work after that step - tried it with both a fresh ionic start test-app tabs and with my own project - same problem:
I’m now getting an error that says
ORIGINAL EXCEPTION: No Directive annotation found on MyApp
where MyApp is the app’s main class name that gets bootstrapped - will look into this… unless somebody could please shed a light first.
Thanks very much for your reply. I saw the aliases, which seem to solve the problem, earlier, but did not know how to use them. I’ll post my question about them in that thread.