skanaar / nomnoml

The sassy UML diagram renderer
https://www.nomnoml.com
MIT License
2.7k stars 209 forks source link

TypeError: _.object is not a function #68

Closed srep2512 closed 6 years ago

srep2512 commented 6 years ago

could this error be thrown in case of a lodash version >4.x? I tried to used youre library in the Quasar Framework, which is based on vue.js

skanaar commented 6 years ago

Nomnoml depends on lodash 3.7. If you provide other dependencies than what nomnoml is built for you must polyfill any missing features.

For example this polyfill should fix your environment.

_.object = _.fromPairs;