TypeError: PerfectScrollbar is not a constructor
angular.js:14800 TypeError: PerfectScrollbar is not a constructor
It looks like you are using old version, try this documentation: https://github.com/utatti/perfect-scrollbar/tree/0.8.1
@dikirill still not working
how can we reproduce this issue?
I am having the same issue in certain constellation with version 1.5.3. I am beginner level with javascript and trying to write a vue3 app, so i might just don't get things right. I'd like to write typescript but have javascript as well enabled because i am using a template written with javascript and vue2...
It works when I
import PerfectScrollbar from 'perfect-scrollbar';
and then in a method
new PerfectScrollbar(mycontainer);
I get _ TypeError: PerfectScrollbar is not a constructor_ when i try following in a method.
let PerfectScrollbar = await import('perfect-scrollbar')
new PerfectScrollbar(mycontainer);
I am not sure, but when i read docs about js modules i get the impression both should work. Does this info help somehow? :)