> git clone https://github.com/wasd171/graphcool-local-function-error.git
> cd graphcool-local-function-error
> graphcool deploy # choose local cluster
The output:
❯ graphcool deploy
Bundling functions... ⣾
▸ Cannot read property 'pipesCount' of undefined
❯ graphcool version
graphcool/0.7.0 (darwin-x64) node-v8.0.0
Using [email protected] instead of [email protected] seems to fix this even for [email protected]!
interesting, so this looks to be a problem related to the node version.
The archiver package used to create the build.zip has an issue with node 8, causing exactly this error: https://github.com/archiverjs/node-archiver/issues/236
The recommendation of the node-archiver team is to use a different version than node 8. I will add that to the semver check we have in the graphcool-cli package.
The warning has been added:
https://github.com/graphcool/graphcool/commit/bec478f5a28ea57f64e1b77ec7e0faba2f052221