Meteor-Files: Buffer is not defined
One of my meteor package is using ostrio:files. After upgrading to latest ostrio:files and latest meteor. I got below issue, issue will not happen if I remove ostrio:files dependency from my package.
modules.js?hash=355b762…:22419 Uncaught ReferenceError: Buffer is not defined
at util.js (modules.js?hash=355b762…:22419)
at fileEvaluate (modules-runtime.js?hash=8587d18…:343)
at require (modules-runtime.js?hash=8587d18…:238)
at meteorInstall.node_modules.meteor-node-stubs.node_modules.readable-stream.lib._stream_readable.js (modules.js?hash=355b762…:18103)
at fileEvaluate (modules-runtime.js?hash=8587d18…:343)
at require (modules-runtime.js?hash=8587d18…:238)
at meteorInstall.node_modules.meteor-node-stubs.node_modules.readable-stream.readable.js (modules.js?hash=355b762…:18038)
at fileEvaluate (modules-runtime.js?hash=8587d18…:343)
at require (modules-runtime.js?hash=8587d18…:238)
at meteorInstall.node_modules.meteor-node-stubs.node_modules.stream-browserify.index.js (modules.js?hash=355b762…:17922)
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Comments: 19 (12 by maintainers)
@dr-dimitru as always, you rock!
Sorry for the delay @dr-dimitru , Yes this work around will work by add global.Buffer = global.Buffer || require(“buffer”).Buffer;
But my question is, will it be better to handle this in ostrio:files package itself?
Ok. Im closing this issue here.
Sure update is coming.