An error is rising while building apk with --prod. Error is shown below.
[WARN] Error occurred during command execution from a CLI plugin
(@ionic/cli-plugin-cordova).
Error: ENOENT: no such file or directory, open ‘C:\profile.html’
What command are you executing?
What is the complete error message?
Also post your ionic info
output please.
What is it about that profile.html file?
ionic info:
[ “Ionic Framework: 3.5.3”,
“Ionic App Scripts: 2.0.2”,
“Angular Core: 4.1.3”,
“Angular Compiler CLI: 4.1.3”,
“Node: 8.1.3”,
"OS Platform: Windows 8.1]
I don’t know about profile.html. Because whenever I’m executing the command ionic cordova build android --prod then only it is showing the error which I have mentioned in my first post. And that too it is saying error only for this project. But the same command is building apk properly without any issues for other project folders.
Please run ionic info
in the command line and paste the output.
Do you have a profile.html file in your project anywhere? Search the code for it.
@ionic/cli-plugin-cordova : 1.6.1
@ionic/cli-plugin-ionic-angular : 1.4.0
@ionic/cli-utils : 1.7.0
ionic (Ionic CLI) : 3.7.0
global packages:
Cordova CLI : 7.0.1
local packages:
@ionic/app-scripts : 2.0.2
Cordova Platforms : android 6.2.3 ios 4.4.0
Ionic Framework : ionic-angular 3.5.3
System:
Node : v8.1.3
OS : Windows 8.1
npm : 5.0.3
These two could be updated.
But more important is to clarify what profile.html means…