lvasquez / sb-admin-bootstrap-template-asp-mvc-authentication

sb-admin bootstrap template asp mvc with owin authentication
14 stars 28 forks source link

Error at morris.js sb-admin-bootstrap-template #1

Open andreas-kurniawan opened 9 years ago

andreas-kurniawan commented 9 years ago

Hello Ivasquez, thanks for your admin bootstrap template. I want to use it, but when i run the code on visual studio, there was an error on morris.js.

" Unhandled exception at line 84, column 9 in http://localhost:16187/Scripts/plugins/morris/morris.js 0x800a139e - JavaScript runtime error: Graph container element not found " I attached the error on the image. morris

Do you have an idea to handle the error? Thanks.

lvasquez commented 9 years ago

Hello,

This error comes from morris.js as you can see, actually comes with the default css bootstrap template. Apparently this error comes because the morris.js try to render some object that doesn't exist yet, to fix this issue, you can set the morris libraries only in the view that you considering to use and remove them from the layout. I hope it helps.

Regards