ionic 2: ionic run android shows error

General Tech Bugs & Fixes 2 years ago

0 1 0 0 0 tuteeHUB earn credit +10 pts

5 Star Rating 1 Rating

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.

Take Quiz To Earn Credits!

Turn Your Knowledge into Earnings.

tuteehub_quiz

Answers (1)

Post Answer
profilepic.png
manpreet Tuteehub forum best answer 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.

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 in 24 ms
[20:16:33]  copy started ...
[20:16:33]  ngc started ...
[20:16:33]  lint started ...
[20:16:33]  copy finished in 182 ms
[20:16:34]  lint finished in 770 ms
[20:16:52]  ngc finished in 18.71 s
[20:16:52]  bundle prod started ...
[20:16:52]  bundle prod failed:  Could not resolve entry (/app/main.prod.ts)

[20:16:52]  Error: Could not 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: Could not resolve entry (/app/main.prod.ts)



npm
 ERR! Windows_NT 10.0.14393

npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" 
                                                
                                                
0 views
0 shares

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.

tuteehub community

Join Our Community Today

Ready to take your education and career to the next level? Register today and join our growing community of learners and professionals.

tuteehub community