Posted on 16 Aug 2022, this text provides information on Bugs & Fixes related to General Tech. Please note that while accuracy is prioritized, the data presented might not be entirely correct or up-to-date. This information is offered for general knowledge and informational purposes only, and should not be considered as a substitute for professional advice.
i have error when i run "ionic run android" or "ionicbuild android" in my ionic 2 app this is the error i get. i just tryinh to see my app in the emulator of android. i tried to make new ionic 2 project but it's the same problem.
Running'build:before' npm script before build>ionic-hello-world@ build C:\Users\Adir\MyApps\tasklist
>ionic-app-scripts build--rollup ./config/rollup.config.js
[20:16:33]ionic-app-scripts 0.0.30[20:16:33]build prod started ...[20:16:33] clean started ...[20:16:33] clean finished in24 ms
[20:16:33]copy started ...[20:16:33] ngc started ...[20:16:33] lint started ...[20:16:33]copy finished in182 ms
[20:16:34] lint finished in770 ms
[20:16:52] ngc finished in18.71 s
[20:16:52]bundle prod started ...[20:16:52]bundle prod failed:Couldnot resolve entry (/app/main.prod.ts)[20:16:52]Error:Couldnot resolve entry (/app/main.prod.ts)
at C:\Users\Adir\MyApps\tasklist\node_modules\rollup\dist\rollup.js:8635:28
at process._tickCallback (internal/process/next_tick.js:103:7)Error running ionic app script "build":Error:Couldnot resolve entry (/app/main.prod.ts)
npm
ERR!Windows_NT10.0.14393
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe""C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js"
No matter what stage you're at in your education or career, TuteeHUB will help you reach the next level that
you're aiming for. Simply,Choose a subject/topic and get started in self-paced practice
sessions to improve your knowledge and scores.
manpreet
Best Answer
2 years ago
i have error when i run "ionic run android" or "ionic build android" in my ionic 2 app this is the error i get. i just tryinh to see my app in the emulator of android. i tried to make new ionic 2 project but it's the same problem.