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: must start with number, buffer, array or string :: Node version 4.1 #217

Closed
fedescarpa opened this issue Oct 22, 2015 · 6 comments

Comments

@fedescarpa
Copy link

I get this error when I run the next code with node 4.1.x. it works with node 0.12.x

gulp.src(src.html).pipe(wiredep.stream({ ignorePath: /^(\.\.\/)+/ }))

Error:

TypeError: must start with number, buffer, array or string
    at fromObject (buffer.js:167:9)
    at new Buffer (buffer.js:58:10)
    at DestroyableTransform._transform (./node_modules/wiredep/wiredep.js:136:23)
    at DestroyableTransform.Transform._read (./node_modules/wiredep/node_modules/through2/node_modules/readable-stream/lib/_stream_transform.js:184:10)
    at DestroyableTransform.Transform._write (./node_modules/wiredep/node_modules/through2/node_modules/readable-stream/lib/_stream_transform.js:172:12)
    at doWrite (./node_modules/wiredep/node_modules/through2/node_modules/readable-stream/lib/_stream_writable.js:237:10)
    at writeOrBuffer (./node_modules/wiredep/node_modules/through2/node_modules/readable-stream/lib/_stream_writable.js:227:5)
    at DestroyableTransform.Writable.write (./node_modules/wiredep/node_modules/through2/node_modules/readable-stream/lib/_stream_writable.js:194:11)
@vitstr
Copy link

vitstr commented Oct 26, 2015

@fedescarpa src.html is empty? I have a similar problem.. #219

@fedescarpa
Copy link
Author

@vitstr No, src.html is a glob 'src/*/.html', is not empty

@krnlde
Copy link

krnlde commented Nov 6, 2015

No no no, he means the content of one of the final HTML files from the glob or whatever. For me it was the problem. So thank you @vitstr , though the error message could be improved for that one.

@reddeadpixel
Copy link

I experienced the problem with having a empty SASS partial file. Seems wiredep doesn't like it to have empty files in it's stream, but it won't throw an error if you insert a space or new line in the empty file.

I agree with @krnlde that the error message on this one could be improved. If @vitstr didn't mentioned abt an empty file, I probably still was searching for a needle in a haystack. Thanks!

@cetrobo
Copy link

cetrobo commented Oct 5, 2016

i have the same problem as you , how can i fix it ?

@nvjot94
Copy link

nvjot94 commented Oct 14, 2016

thankssssssssssss.............................

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

6 participants