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

TypeError with io.js v 2.3.0 #26

Closed
bricss opened this issue Jun 15, 2015 · 4 comments
Closed

TypeError with io.js v 2.3.0 #26

bricss opened this issue Jun 15, 2015 · 4 comments

Comments

@bricss
Copy link

bricss commented Jun 15, 2015

ERROR [karma]: [TypeError: options must be a string or an object]
TypeError: options must be a string or an object
    at new WriteStream (fs.js:1798:11)
    at Object.fs.createWriteStream (fs.js:1784:10)
    at c:\Users\<username>\Documents\Aptana Studio 3 Workspace\admin-gui\node_modules\karma-html-reporter\index.js:89:22
    at FSReqWrap.oncomplete (fs.js:82:15)
.write(string, encoding, offset, length) is deprecated. Use write(string[, offset[, length]][, encoding]) instead.
@bricss
Copy link
Author

bricss commented Jun 15, 2015

karma-runner/karma#1454

@bricss
Copy link
Author

bricss commented Jun 15, 2015

nodejs/node#1981

@bricss
Copy link
Author

bricss commented Jun 15, 2015

Bug raised because of fs.createWriteStream is not support callbacks and could be fixed by adding error and close events rather than using callback.

@ChALkeR
Copy link

ChALkeR commented Jun 16, 2015

The callback was ignored before 2.3.0 and started generating an Error since 2.3.0.
You should remove it.

https://iojs.org/api/fs.html#fs_fs_createwritestream_path_options

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

No branches or pull requests

2 participants