Ionic Emulate iOS error: Error: Could not resolve entry (./.tmp/app/main.dev.js)


#1

Hi,

I keep getting this error and I resolves as many errors as I could. Before I was having NGC failed errors but I fixed those.

ionic serve works perfectly…

I’m also using pouchdb-browser which I’m following in this:

I used this repo as an example:

https://github.com/matheusgarcez/ionic-2rc-pouchdb

Cordova CLI: 6.3.1
Ionic Framework Version: 2.0.0-rc.0
Ionic CLI Version: 2.1.0
Ionic App Lib Version: 2.1.0-beta.1
ios-deploy version: 1.9.0
ios-sim version: 5.0.8
OS: Mac OS X El Capitan
Node Version: v6.7.0
Xcode version: Xcode 8.0 Build version 8A218a

NPM: 3.10.8
Node: v6.7.0

[22:09:32] ionic-app-scripts 0.0.23
[22:09:32] build prod started …
[22:09:32] clean started …
[22:09:32] clean finished in 12 ms
[22:09:32] copy started …
[22:09:32] ngc started …
[22:09:32] lint started …
[22:09:32] copy finished in 154 ms
[22:09:33] lint finished in 1.25 s
[22:09:49] ngc finished in 17.48 s
[22:09:49] bundle prod started …
[22:09:49] Error: Could not resolve entry (./.tmp/app/main.dev.js)
at /Users/Dan/Documents/WebProjects/vacayerV5/node_modules/rollup/dist/rollup.js:8602:28

[22:09:49] sass started …
[22:09:51] sass finished in 1.39 s
[22:09:51] minify started …
[22:09:51] cleancss started …
[22:09:51] uglifyjs started …
[22:09:51] Error: ENOENT: no such file or directory, open '/Users/Dan/Documents/WebProjects/vacayerV5/www/build/main.js’
at Error (native)
at Object.fs.openSync (fs.js:640:18)
at Object.fs.readFileSync (fs.js:508:33)
at addFile (/Users/Dan/Documents/WebProjects/vacayerV5/node_modules/uglify-js/tools/node.js:68:22)
at /Users/Dan/Documents/WebProjects/vacayerV5/node_modules/uglify-js/tools/node.js:79:17
at Array.forEach (native)
at Object.exports.minify (/Users/Dan/Documents/WebProjects/vacayerV5/node_modules/uglify-js/tools/node.js:77:26)
at runUglifyInternal (/Users/Dan/Documents/WebProjects/vacayerV5/node_modules/@ionic/app-scripts/dist/uglifyjs.js:34:19)
at runUglify (/Users/Dan/Documents/WebProjects/vacayerV5/node_modules/@ionic/app-scripts/dist/uglifyjs.js:23:28)
at Object.uglifyjs (/Users/Dan/Documents/WebProjects/vacayerV5/node_modules/@ionic/app-scripts/dist/uglifyjs.js:9:12)

[22:09:51] cleancss finished in 776 ms
[22:09:51] minify finished in 777 ms
[22:09:51] build prod finished in 19.78 s