Hi, I’m trying to use some npm modules in client side, but result in cannot find module errors.
I’m using Meteor 1.5.1 and the npm module is buffermaker 1.2.0
The detailed reproduce steps are described in:
I have tried to import it in server side js, there is no problem, but when I import it in client side js (React component), I got following error.
modules-runtime.js?hash=8587d18…:231 Uncaught Error: Cannot find module './lib/BufferMaker'
at makeMissingError (modules-runtime.js?hash=8587d18…:231)
at require (modules-runtime.js?hash=8587d18…:241)
at index.js (modules.js?hash=e9fc8db…:1016)
at fileEvaluate (modules-runtime.js?hash=8587d18…:343)
at require (modules-runtime.js?hash=8587d18…:238)
at main.js (main.js:1)
at fileEvaluate (modules-runtime.js?hash=8587d18…:343)
at require (modules-runtime.js?hash=8587d18…:238)
at app.js?hash=3f48780…:101