creativetimofficial / ct-material-dashboard-pro

Material Dashboard Pro - Premium Bootstrap 5 Admin
https://demos.creative-tim.com/material-dashboard-pro/pages/dashboards/analytics
116 stars 28 forks source link

[Bug] Error with perfectscrollbavr #294

Open mpmahen opened 3 years ago

mpmahen commented 3 years ago

Version

2.2

Reproduction link

File://template.html

Operating System

Windows

Device

Desktop

Browser & Version

Latest Chrome

Steps to reproduce

Just run the template and see the error under line 25 of the js.

What is expected?

No error

What is actually happening?

ERROR Uncaught ReferenceError: PerfectScrollbar is not defined | ReferenceError: PerfectScrollbar is not defined at http://localhost:8000/SupportTest/assets/js/material-dashboard.js?v=2.2.2:25:14 at http://localhost:8000/SupportTest/assets/js/material-dashboard.js?v=2.2.2 [25:14]


Solution

Additional comments

groovemen commented 3 years ago

Hello @mpmahen,

Thank you for using our products, we'll ask you to give us more details about this issue because we have tested in the user downloadable archive and everything looks good. Please let us know if we can help with any other details.

Best, Creative Tim Staff

P.S. Remember to wash your hands before coding!

mpmahen commented 3 years ago

I am using version 2.2.2 and have opened the template.html file. When you inspect the page and look at the material-dashboard.js you will see an error on line 25.

Kind regards/Met vriendelijke groet Maarten Hennekam @.***

On 15 Apr 2021, at 11:03, Stefan @.***> wrote:

Hello @mpmahen https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fmpmahen&data=04%7C01%7C%7Ca2f841f0cc24464a962c08d8ffed683c%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637540742398060439%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=vi6BhIwVcv0fMdlSFDZCW5EWVjo%2BUBDTTLeXrB6iqaQ%3D&reserved=0,

Thank you for using our products, we'll ask you to give us more details about this issue because we have tested in the user downloadable archive and everything looks good. Please let us know if we can help with any other details.

Best, Creative Tim Staff

P.S. Remember to wash your hands before coding!

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fcreativetimofficial%2Fct-material-dashboard-pro%2Fissues%2F294%23issuecomment-820256447&data=04%7C01%7C%7Ca2f841f0cc24464a962c08d8ffed683c%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637540742398070397%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=fwA6BBHXexvBI3S6M1Wm4N6GJWP9HWwXzzmYFmFBDmc%3D&reserved=0, or unsubscribe https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAFI5YKLX6JMPOK44PDRCHN3TI2TX5ANCNFSM4267QCCQ&data=04%7C01%7C%7Ca2f841f0cc24464a962c08d8ffed683c%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637540742398070397%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=z%2FFIEbdMRLno7CzC0f7%2BKIig7MNLLK0JxEZ0wWiEq50%3D&reserved=0.

groovemen commented 3 years ago

Hello again,

Thank you for your details. Please add at the bottom of the page (before the closing of <body> tag) the following script: <script src="./assets/js/plugins/perfect-scrollbar.min.js"></script> Hope that information helps you. Please let us know if we can help you with anything else.

All the best, Stefan

mpmahen commented 3 years ago

This still give the same error. I had already tried this.

Kind regards/Met vriendelijke groet Maarten Hennekam @.***

On 15 Apr 2021, at 11:48, Stefan @.***> wrote:

mpmahen commented 3 years ago

Stefan,

I solved the problems: 1) disabled the google map link 2) fixed the bootstrap-datetimepicker.js by making it bootstrap-datetimepicker.min.js 3) put the perfect-scrollbar script before the material dashboard .

Kind regards/Met vriendelijke groet Maarten Hennekam @.***

On 15 Apr 2021, at 11:48, Stefan @.***> wrote:

Hello again,

Thank you for your details. Please add at the bottom of the page (before the closing of tag) the following script:

Hope that information helps you. Please let us know if we can help you with anything else.

All the best, Stefan

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fcreativetimofficial%2Fct-material-dashboard-pro%2Fissues%2F294%23issuecomment-820289388&data=04%7C01%7C%7Cce2be1c0b1ad4ce89f8208d8fff39540%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637540768923255690%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=yixdYEF61b6pNUrWjHWJbWCXR0NxW8yQDakpReFs%2FTI%3D&reserved=0, or unsubscribe https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAFI5YKORM5W3S5LMGAGK6I3TI2Y5XANCNFSM4267QCCQ&data=04%7C01%7C%7Cce2be1c0b1ad4ce89f8208d8fff39540%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637540768923255690%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=c0fZi%2BR7Ak3LEOzRtOjt9qcB%2Bto7Uj5QwzG%2FHm%2FW2ts%3D&reserved=0.