Skip to content

Data initialization with props does not work properly after updating Vue.js to 2.2.0 #68

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
kimamula opened this issue Feb 26, 2017 · 2 comments
Labels

Comments

@kimamula
Copy link

Steps to reproduce

  1. Update vue, vue-template-compiler to 2.2.0
  2. npm run example
  3. Open example.html in a browser

Expected behavior

helloMsg is initialized to Hello, World

Actual behavior

helloMsg is initialized to Hello, undefined

@ktsn
Copy link
Member

ktsn commented Feb 26, 2017

Thank you for reporting this issue.
This is likely caused by Vue 2.2's internal changes (for $props). I'll modify vue-class-component to fix this issue.

@yyx990803
Copy link
Member

This is now fixed in 5.0.0 (note you will also need to enable allowSyntheticDefaultImports in TS compile options).

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

No branches or pull requests

3 participants