Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: _.merge is not a function #6

Open
ticlaudeberube opened this issue Jul 16, 2015 · 7 comments
Open

TypeError: _.merge is not a function #6

ticlaudeberube opened this issue Jul 16, 2015 · 7 comments

Comments

@ticlaudeberube
Copy link

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
Copy link
Author

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

@deepthiravadi
Copy link

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
Copy link

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

@ticlaudeberube
Copy link
Author

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

Claude

Claude Bérubé, PMP, PSM
[email protected]
514-529-0338

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

2015-10-15 21:24 GMT-04:00 shadeeka [email protected]:

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
#6 (comment)
.

@vladradulescu1
Copy link

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

@lazyTai
Copy link

lazyTai commented Apr 30, 2018

image

@praveesh91
Copy link

fixed???

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants