Upgrade to RC1: Cannot find module "child_process"


#1

I’m migrating from beta to RC1 (for the second time, first time I gave up ). I’m getting this error on app start:

‘Cannot find module “child_process”’.

My guess, it’s some build configuration issue, maybe webpack. I did everything according to Ionic team upgrade instructions and, as far as I know, my app doesn’t require any special configurations. There is no stack trace for this exception, so I don’t even know where it comes from.

This is my system info:

Cordova CLI: 6.4.0
Gulp version: CLI version 3.9.1
Gulp local: Local version 3.9.1
Ionic Framework Version: 2.0.0-rc.1
Ionic CLI Version: 2.1.4
Ionic App Lib Version: 2.1.2
Ionic App Scripts Version: 0.0.39
OS: Distributor ID: Ubuntu Description: Ubuntu 14.04.5 LTS
Node Version: v6.9.1

Any help would be highly appreciated.


#2

It seems like exception comes from XMLHttpRequest.js

var spawn = require("child_process").spawn;