dtpublic / malhar-dashboard-webapp

Dashboard Web Application
Apache License 2.0
71 stars 61 forks source link

TypeError: _.merge is not a function #6

Open ticlaudeberube opened 9 years ago

ticlaudeberube commented 9 years ago

There is an issue with underscore and lodash. _.merge is undefined.

at Object.WidgetModel (http://localhost:9000/bower_components/malhar-angular-dashboard/dist/malhar-angular-dashboard.js:848:42)

// Extend this with the widget definition object with overrides merged in (deep extended). angular.extend(this, defaults(), _.merge(angular.copy(widgetDefinition), overrides));

ticlaudeberube commented 9 years ago

Replaced _underscore with lodash in /app/index.html. Wondering what is _underscore dependency for?

deepthiravadi commented 9 years ago

HI, I am trying to resolve this bug, I included underscore.js and loadash.js files, but it still throws me the below error

_.merge is not a function at Object.WidgetModel (/js/angular/angular-ui-dashboard.js:848:56)

can you please help..

shadeeka commented 9 years ago

Is anybody able to resolve this.. I am also getting the same error. can anyone help ... thank you

ticlaudeberube commented 9 years ago

Yes, I got it working I believe by using loadash instead of underscore.

Claude

Claude Bérubé, PMP, PSM claude.berube@gmail.com 514-529-0338

http://cberube.azurewebsites.net/ http://cberube.azurewebsites.net/

2015-10-15 21:24 GMT-04:00 shadeeka notifications@github.com:

Is anybody able to resolve this.. I am also getting the same error. can anyone help ... thank you

— Reply to this email directly or view it on GitHub https://github.com/DataTorrent/malhar-dashboard-webapp/issues/6#issuecomment-148569969 .

vladradulescu1 commented 8 years ago

thanks man, I removed underscore.js also and it works just fine !!

lazyTai commented 6 years ago

image

praveesh91 commented 5 years ago

fixed???