javascript - require is not defined at lodash.js:1 -
i need use lodash process of data @ client side. lodash seems perfect, after installed via npm install lodash
and included with
<script type="text/javascript" src="node_modules/lodash/chain/lodash.js"></script>
i'm getting error:
uncaught referenceerror: require not defined @ lodash.js:1
i know browser side doesn't support module loading using require
, how else supposed use lodash there?
ps. it's _.find()
need.
wiki
Comments
Post a Comment