Topic: Console errors displaying from mdb.min.js
dmj7505 free asked 6 years ago
Hi,
I have a very unusual issue when including mdb.min.js. I am using MDB inside of SharePoint 2013 on-premise and I can't figure out the issue. The browser renders a different error on each browser. I'll be more specific:
Mozilla FireFox:
"Type Error: e is null"
Google Chrome:
"Uncaught TypeError: Cannot read property 'addEventListener' of null
at Object.t.init (mdb.min.js:1)
at mdb.min.js:1"
I have used many JavaScript dependencies within SharePoint so I know it's possible. I have a feeling that the other scripts I am calling are clashing with each other. Here is how I am calling(I am calling on a .aspx page and this method is proven without mdb.min.js):
<asp:content ID="PageHead" ContentPlaceHolderID="PlaceHolderAdditionalPageHead" runat="server">
<script type="text/javascript" language="javascript"
src=".../DevRepo/vendor/jquery-3.1.1/jquery-3.1.1.min.js">
</script>
<script type="text/javascript" language="javascript"
src="https://code.jquery.com/ui/1.12.0/jquery-ui.min.js">
</script>
<script type="text/javascript" language="javascript"
src="https://cdnjs.cloudflare.com/ajax/libs/tether/1.4.4/js/tether.min.js">
</script>
<script type="text/javascript" language="javascript"
src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js">
</script>
<script type="text/javascript" language="javascript"
src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.0/clipboard.min.js">
</script>
<script type="text/javascript" language="javascript"
src="https://cdnjs.cloudflare.com/ajax/libs/snackbarjs/1.1.0/snackbar.min.js">
</script>
<script type="text/javascript" language="javascript"
src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/js/bootstrap.min.js">
</script>
<script type="text/javascript" language="javascript"
src=".../DevRepo/jq-admin-master/js/mdb.min.js">
</script>
<script type="text/javascript" language="javascript"
src=".../DevRepo/vendor/underscorejs/js/underscore-1.9.1.js">
</script>
<script type="text/javascript" language="javascript"
src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.7.3/Chart.min.js">
</script>
</asp:content>
Any advice would be greatly appreciated.
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Opened
- ForumUser: Free
- Premium support: No
- Technology: MDB jQuery
- MDB Version: 4.5.15
- Device: HP
- Browser: Firefox,Chrome
- OS: Windows 10
- Provided sample code: No
- Provided link: No
Piotr Glejzer staff commented 6 years ago
Hi,
I'm not sure about your mdb.min.js but in ours at mdb.min.js should be 'chart.min.js' plugin so maybe that's a problem. But we don't support any Microsoft platform like ASP.NET, Share Point etc. We are sorry about that. Have a nice day.
Best,
Piotr