We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
2.7.0-beta.5
https://github.com/johannes-z/repro_vite-plugin-vue2-templates/tree/bug/vue-2.7-beta-readonly
See src/dev.ts
src/dev.ts
git clone https://github.com/johannes-z/repro_vite-plugin-vue2-templates/ git checkout bug/vue-2.7-beta-readonly pnpm install pnpm run dev
this.data.complex.log() should log log to console.
this.data.complex.log()
log
this.data.complex.log is not a function is printed.
this.data.complex.log is not a function
Passing a complex object (e.g. instance of an ES6 class) to readonly(...) breaks the prototype. If you remove readonly and only return data, it works.
readonly(...)
readonly
data
The text was updated successfully, but these errors were encountered:
44ab1cd
Successfully merging a pull request may close this issue.
Version
2.7.0-beta.5
Reproduction link
https://github.com/johannes-z/repro_vite-plugin-vue2-templates/tree/bug/vue-2.7-beta-readonly
See
src/dev.ts
Steps to reproduce
git clone https://github.com/johannes-z/repro_vite-plugin-vue2-templates/
git checkout bug/vue-2.7-beta-readonly
pnpm install
pnpm run dev
What is expected?
this.data.complex.log()
should loglog
to console.What is actually happening?
this.data.complex.log is not a function
is printed.Passing a complex object (e.g. instance of an ES6 class) to
readonly(...)
breaks the prototype. If you removereadonly
and only returndata
, it works.The text was updated successfully, but these errors were encountered: