Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Bobrovskih opened this issue May 5, 2023 · 3 comments
Open

Comments

@Bobrovskih
Copy link

Bobrovskih commented May 5, 2023

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.
systemjs/systemjs#2147

Rollup confirm bug and make fix release.
rollup/rollup#3420

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

Vue 2.6.14
Vuescroll 4.17.5

@Bobrovskih
Copy link
Author

Bobrovskih commented May 5, 2023

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

error happens here (version lib maybe different)

@Bobrovskih
Copy link
Author

@wangyi7099

Bobrovskih added a commit to Bobrovskih/vuescroll that referenced this issue Sep 6, 2023
fix throwing error for systemjs modules, which creates via Object.create(null) and hasnt Vue.hasOwnProperty method
@Bobrovskih
Copy link
Author

#296

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant