These are chat archives for angular/angular-2-ionic-2

30th
Mar 2017
Daniel Kucal
@DanielKucal
Mar 30 2017 00:13
@alexandersokolov, my project uses custom webpack plugins, loaders etc., and I can't see any webpack settings in Ionic project. Without it my app instead of its content has unparsed template syntax like <% if (webpackConfig.htmlElements.headTags) { %>...
I've read a solution for this is copying some files from /node_modules/ionic and changing them inside the project, often necessary to repeat after each actualisation - just crazy.
Also I would really want to keep my project structure as it is, because we don't have any CI system or tests on frontend, so the easiest (the only?) way to update dependencies for us is to follow angular2-webpack-starter repository changes as we base on it...
Prajwal GP
@prajwalgp
Mar 30 2017 07:24
The click on the item-left element is not triggering but instead the ion-item with label and input is trigerring
Damon Casale
@damoncasale
Mar 30 2017 23:24
Afternoon folks...
Getting a weird build error when running "ionic run android":
Running command cmd "/s /c "(path to app)\platforms\android\cordova\build"" - The system cannot find the path specified.
The "cordova" folder seems to be missing. Help?
dashwoodster
@dashwoodster
Mar 30 2017 23:29
npm -g install cordova
have you intsalled cordova
Damon Casale
@damoncasale
Mar 30 2017 23:29
Yes.
I even uninstalled and reinstalled it.
npm install -g ionic cordova; npm uninstall -g cordova (because of a weird deprecation warning); npm install -g cordova
dashwoodster
@dashwoodster
Mar 30 2017 23:30
when you make the inoic project
you have to enter the direcotry afterwards
Damon Casale
@damoncasale
Mar 30 2017 23:30
Then I figured out that I needed to turn on telemetry to get rid of the deprecation warning.
dashwoodster
@dashwoodster
Mar 30 2017 23:30
have you entered the directory?
Damon Casale
@damoncasale
Mar 30 2017 23:30
What do you mean, enter the directory?
dashwoodster
@dashwoodster
Mar 30 2017 23:30
so when you create a ionic project it creates a folder
Damon Casale
@damoncasale
Mar 30 2017 23:30
I pulled a client's source off of Bitbucket and attempted to npm install, etc.
dashwoodster
@dashwoodster
Mar 30 2017 23:30
so you need to enter it
if you are on windows type dir
if you are on mac or linux type ls
see you if you see the .json files of ionic
Damon Casale
@damoncasale
Mar 30 2017 23:31
Yes, I can open up a shell and go to the folder where the code is. Already did that and ran npm install.
I have ionic_config.json. Did you mean that?
ionic.config.json I mean.
dashwoodster
@dashwoodster
Mar 30 2017 23:32
yeah that means ur in the dir...
hm
where is the git repository you copied this from?
Damon Casale
@damoncasale
Mar 30 2017 23:33
It's a private Bitbucket repo.
The platforms folder is there, but in platforms/android, I don't see a cordova folder.
dashwoodster
@dashwoodster
Mar 30 2017 23:34
That's something you should consult the author of the bitbucket
if it is not you
Damon Casale
@damoncasale
Mar 30 2017 23:34
Hmm.
dashwoodster
@dashwoodster
Mar 30 2017 23:34
or try
ionic platform add android
and try adding the paltform yourself
and see if that popups
Damon Casale
@damoncasale
Mar 30 2017 23:34
I'm trying not to appear like an idiot to this client. Anyway, I tried that and it says the platform is already installed.
dashwoodster
@dashwoodster
Mar 30 2017 23:35
Try
ionic lab
and see if that gives you an error
99% it wil but worth a shot
If that doesn't work try readding the paltform
cordova platform remove android
cordova platform add android
Damon Casale
@damoncasale
Mar 30 2017 23:36
I see ios, android and Windows panes.
I can do ionic serve and it works, but ionic run android doesn't work.
dashwoodster
@dashwoodster
Mar 30 2017 23:37
if you do ionic lab
you can choose android paltform there
and test it on mutliple platforms in your browser
that's what i use
Damon Casale
@damoncasale
Mar 30 2017 23:37
I'm getting errors because of a missing cordova.js
dashwoodster
@dashwoodster
Mar 30 2017 23:38
try
Damon Casale
@damoncasale
Mar 30 2017 23:38
Some Cordova plugins (e.g. Facebook) are trying to run and can't, because this isn't running in an emulator.
dashwoodster
@dashwoodster
Mar 30 2017 23:38
cordova build android
to add cordova
that should generate it
Damon Casale
@damoncasale
Mar 30 2017 23:39

Using this version of Cordova with older version of cordova-android is being deprecated. Consider upgrading to cordova-android@5.0.0 or newer.
cp: copyFileSync: could not write to dest file (code=ENOENT):c:\wwwroot\lenz\platforms\android\cordova\defaults.xml

Running command: "c:\Program Files\nodejs\node.exe" c:\wwwroot\lenz\hooks\after_prepare\010_add_platform_class.js c:/wwwroot/lenz
add to body class: platform-android
Running command: cmd "/s /c "c:\wwwroot\lenz\platforms\android\cordova\build""
The system cannot find the path specified.

Except...my version of Cordova android is 6.x.x?
It can't write to the cordova folder because it's not there.
cordova platform update android worked.
Looks like I need to update my Java JDK next.