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 lodashand 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

Popular posts from this blog

Asterisk AGI Python Script to Dialplan does not work -

python - Read npy file directly from S3 StreamingBody -

kotlin - Out-projected type in generic interface prohibits the use of metod with generic parameter -