Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

spawnSync TypeError: Incorrect value for stdio stream when running build:examples #438

Closed
kevinold opened this issue Aug 9, 2015 · 4 comments

Comments

@kevinold
Copy link
Contributor

kevinold commented Aug 9, 2015

I'm running into the following issue on the breaking-changes-1.0 and rewrite-docs-again branches.

I'm see the issue on 0.10.38, 0.12.1 and 0.12.7.

➜  redux git:(breaking-changes-1.0) npm run build:examples

> [email protected] build:examples /Users/kevinold/github_clones/redux
> babel-node examples/buildAll.js

npm WARN package.json [email protected] No README data
[email protected] node_modules/react-redux
└── [email protected] ([email protected])
Hash: 2ce3631c7bc37d1beef0
Version: webpack 1.10.5
Time: 2953ms
    Asset    Size  Chunks             Chunk Names
bundle.js  981 kB       0  [emitted]  main
   [0] multi main 64 bytes {0} [built]
    + 258 hidden modules
child_process.js:941
      throw new TypeError('Incorrect value for stdio stream: ' +
            ^
TypeError: Incorrect value for stdio stream: { type: 'fd', fd: { type: 'fd', fd: 0 } }
    at child_process.js:941:13
    at Array.reduce (native)
    at _validateStdio (child_process.js:865:17)
    at Object.spawnSync (child_process.js:1287:19)
    at Object.<anonymous> (/Users/kevinold/github_clones/redux/examples/buildAll.js:7:10)
    at Module._compile (module.js:460:26)
    at normalLoader (/Users/kevinold/github_clones/redux/node_modules/babel-core/lib/api/register/node.js:199:5)
    at Object.require.extensions.(anonymous function) [as .js] (/Users/kevinold/github_clones/redux/node_modules/babel-core/lib/api/register/node.js:216:7)
    at Module.load (module.js:355:32)
    at Function.Module._load (module.js:310:12)

Looks related to this nodejs/node-v0.x-archive#9158

Submitting a PR soon to get past this.

@gaearon
Copy link
Contributor

gaearon commented Aug 9, 2015

Isn't this a Babel issues rather than ours?

@gaearon
Copy link
Contributor

gaearon commented Aug 9, 2015

Closing as you fixed it in #439. Thanks!

@gaearon gaearon closed this as completed Aug 9, 2015
@kevinold
Copy link
Contributor Author

kevinold commented Aug 9, 2015

I discovered that if I installed io.js 3.0.0 that there were no issues and when running the counter and todo examples, io.js is required for the tests to run (jsdom requirement) when running "npm run build:examples". I see from .travis.yml now that you're running io.js, so I wondering if an enforcement via package.json or just a readme note would help those in the near future.

@gaearon
Copy link
Contributor

gaearon commented Aug 9, 2015

It's something for a “Contributing” doc we don't currently have.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants