YvesCoding / vuescroll

A customizable scrollbar plugin based on vue.js for PC , mobile phone, touch screen, laptop.
https://nifty-shannon-7eab38.netlify.app/
MIT License
1.27k stars 111 forks source link

thrown error Vue.hasOwnProperty is not a function when using systemjs #290

Open Bobrovskih opened 1 year ago

Bobrovskih commented 1 year ago

Hello, my project using SystemJS bundler, which under the hood it creates module via Object.create(null); Used version rollup cannot handle this case. When project loading vuescroll lib in runtime, it throws error Vue.hasOwnProperty is not a function, because Vue has not prototype. I research this bug, and find systemjs issue, same problem with react. https://github.com/systemjs/systemjs/issues/2147

Rollup confirm bug and make fix release. https://github.com/rollup/rollup/pull/3420

Can you upgrade rollup version, which fixed, for vue 2 ?

Vue 2.6.14 Vuescroll 4.17.5

Bobrovskih commented 1 year ago

https://github.com/YvesCoding/vuescroll/blob/v4.8.12/dist/vuescroll.js#L15

error happens here (version lib maybe different)

Bobrovskih commented 1 year ago

@wangyi7099

Bobrovskih commented 1 year ago

https://github.com/YvesCoding/vuescroll/pull/296