omsmith / browserify-ngannotate

57 stars 7 forks source link

Can't use with browserify middleware #6

Closed randallb closed 10 years ago

randallb commented 10 years ago

I use coffeeify and i was just trying to use this module so i could have production bliss w/o the ugly syntax stuff.

I get this error:

/node_modules/browserify/node_modules/readable-stream/lib/_stream_readable.js:498
  dest.on('unpipe', onunpipe);
       ^
TypeError: Object #<Object> has no method 'on'
  at Transform.Readable.pipe (/Volumes/Data/Dropbox/ac/stencil_editor/node_modules/browserify/node_modules/readable-stream/lib/_stream_readable.js:498:8)
  at wrapTransform (/Volumes/Data/Dropbox/ac/stencil_editor/node_modules/browserify/node_modules/module-deps/index.js:445:11)
  at makeTransform (/Volumes/Data/Dropbox/ac/stencil_editor/node_modules/browserify/node_modules/module-deps/index.js:211:32)
  at /Volumes/Data/Dropbox/ac/stencil_editor/node_modules/browserify/node_modules/module-deps/index.js:186:9
  at Deps.getTransforms (/Volumes/Data/Dropbox/ac/stencil_editor/node_modules/browserify/node_modules/module-deps/index.js:191:7)
  at Deps.readFile (/Volumes/Data/Dropbox/ac/stencil_editor/node_modules/browserify/node_modules/module-deps/index.js:164:25)
  at /Volumes/Data/Dropbox/ac/stencil_editor/node_modules/browserify/node_modules/module-deps/index.js:280:14
  at onresolve (/Volumes/Data/Dropbox/ac/stencil_editor/node_modules/browserify/node_modules/module-deps/index.js:150:14)
  at /Volumes/Data/Dropbox/ac/stencil_editor/node_modules/browserify/index.js:738:13
  at next (/Volumes/Data/Dropbox/ac/stencil_editor/node_modules/browserify/index.js:782:17)
  at /Volumes/Data/Dropbox/ac/stencil_editor/node_modules/browserify/index.js:786:33
  at /Volumes/Data/Dropbox/ac/stencil_editor/node_modules/browserify/index.js:794:29
  at fs.js:207:20
  at Object.oncomplete (fs.js:107:15)
omsmith commented 10 years ago

I'll look into it within the next few hours.

randallb commented 10 years ago

Hold on. I might have screwed up something.