ionic-cli icon indicating copy to clipboard operation
ionic-cli copied to clipboard

Validation of project and integration root directories.

Open sonntag-philipp opened this issue 4 years ago • 1 comments

Hello there, I tried to fix a, in my opinion, very confusing error message. image

It is possible to see this message even when the cli is correctly installed and configured. The error message doesn't distinguish between errors in the CLI command (ng) and it's parameters (--port=8101). This error will also show up, when a configuration in the project is not correctly set, which could be extremely confusing. A good example would be this issue.

I solved this by validating the command without parameters.

sonntag-philipp avatar Nov 13 '20 16:11 sonntag-philipp

The tests fail due to missing directory paths. The paths won't get set because the directory doesn't exist. I'm not sure how to modify the unit tests to fix this. Any ideas @dwieeb?

sonntag-philipp avatar Nov 21 '20 19:11 sonntag-philipp