Home > Software engineering >  Ionic 'path' option schema.json
Ionic 'path' option schema.json

Time:06-27

I'm working on an application in ionic/angular, I have updated my operating system to MacOs Monterrey and I have also updated the xCode.

Now when I creating new pages it gives me the following alert:

The 'path' option in '/../../node_modules/@ionic/angular-toolkit/page/schema.json' is using deprecated behaviour. 'workingDirectory' smart default provider should be used instead.

So far the pages are created and working fine, but I haven't been able to find any documentation about this problem.

Please, if someone can help me with information

regards

CodePudding user response:

the issue is that the schematic is not providing a default behaviour for the path, which is required, that causes the warning to appear.

(you can see the anuglar-cli code presenting the warning link to github angular-cli)

Basically the issue is that the schematic is missing some stuff, specifically here: link to github ionic-team/angular-toolkit

The path should include, (but it doesn't) the following property:

"$default": {
 "$source": "workingDirectory"
}

That being said this is not an issue with your application, you probably just updated the angular-cli version and this issue started to show up, I would currently ignore it hoping that the ionic team adds that missing property soon, anyways this should not cause you any issue at the moment.

If you want I would suggest even maybe opening an issue and/or PR in the repo to speed things up if you feel like it :)

  • Related