Categories

See More
Popular Forum

MBA (4887) B.Tech (1769) Engineering (1486) Class 12 (1030) Study Abroad (1004) Computer Science and Engineering (988) Business Management Studies (865) BBA (846) Diploma (746) CAT (651) B.Com (648) B.Sc (643) JEE Mains (618) Mechanical Engineering (574) Exam (525) India (462) Career (452) All Time Q&A (439) Mass Communication (427) BCA (417) Science (384) Computers & IT (Non-Engg) (383) Medicine & Health Sciences (381) Hotel Management (373) Civil Engineering (353) MCA (349) Tuteehub Top Questions (348) Distance (340) Colleges in India (334)
See More

ionic 2: ionic run android shows error

General Tech Bugs & Fixes

Max. 2000 characters
Replies

usr_profile.png

User

( 6 months 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" 

what's your interest