I faced same problem today, when try to update from rc2 to rc3.
I think this is an issue of ionic app script about require json files in node_modules. I replace
var primes = requier "./lib/primes.json"
to
var primes = {
// here is JSON directly taken from ./lib/primes.json
}
Than error changes on other require json file, a replaced it too (this operation was needed for few modules in my app: diffie-hellman/browser.js, eliptic/lib/eliptic.js, parse-asn1/index.js) and my app start work again.
You can try this action in your app, or work with rc2
For me, rollup-plugin-json plugin didn’t help. Probably because of Webpack related issues… I was about to try @snikh’s solution by injecting every json file. But i didn’t want to use a dirty hack like that. Then I gave up PouchDB and started to use LokiJS + localForage (for persistence) as in this tutorial. These kinds of problems are really annoying.
After two days of research, I’ve gave up Whole coding process is a good xp indeed; trying to develop a real product with an unstable tool in RC version is a big risk, I learned