Skip to content

"Cannot assign to read only property 'prototype'" When ES2015 #33

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

Closed
kaorun343 opened this issue Nov 15, 2016 · 1 comment · Fixed by #34
Closed

"Cannot assign to read only property 'prototype'" When ES2015 #33

kaorun343 opened this issue Nov 15, 2016 · 1 comment · Fixed by #34

Comments

@kaorun343
Copy link
Contributor

Hi.

Thanks for publishing the new class decorator!

I tried it but, When target is es2015, an error was thrown. However, when it is es5, there aren't any errors thrown.

Is it possible to set target to es2015 by fixing the code?

https://github.com/vuejs/vue-class-component/blob/master/src/component.ts#L69

@ktsn
Copy link
Member

ktsn commented Nov 15, 2016

Hmm, native class does not allow to update prototype and also it seems other parts are not compatible with native class...
I think we should revert the last update 😞

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

Successfully merging a pull request may close this issue.

2 participants