Meteor cannot run server: TypeError: Cannot read property 'slice' of null


#1

As I asked on: https://stackoverflow.com/questions/45795588/meteor-build-for-android-typeerror-cannot-read-property-slice-of-null-error

I cloned a meteor project based on pup boilerplate: https://github.com/pc-magas/pupAndroidDemo and I tried to build it for android by typing:

meteor add-platform android
meteor build ~/builds/ --server=192.168.30.137:3821
cd ~/builds
tar -xvf pup.tag.gz
cd bundle/program/server
npm install
cd ../
cp ^project_folder^/settings-development.json ~/builds/settings.json
env MONGO_URL="mongodb://localhost:27017/tesedb" ROOT_URL="192.168.30.137:3821" PORT=3821 METEOR_SETTINGS="$(cat ../settings.json)" node main.js 

But I get the error:

/home/pcmagas/builds/bundle/programs/server/boot.js:391 }).run();

TypeError: Cannot read property 'slice' of null at packages/meteor.js:1234:19 at packages/meteor.js:1246:4 at packages/meteor.js:1393:3 at /home/pcmagas/builds/bundle/programs/server/boot.js:338:34 at Array.forEach (native) at Function..each..forEach (/home/pcmagas/builds/bundle/programs/server/node_modules/underscore/underscore.js:79:11) at /home/pcmagas/builds/bundle/programs/server/boot.js:158:5 at /home/pcmagas/builds/bundle/programs/server/boot.js:387:5 at Function.run (/home/pcmagas/builds/bundle/programs/server/profile.js:510:12) at /home/pcmagas/builds/bundle/programs/server/boot.js:386:11

Do you have any Idea what may cause this?