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

Property or method "_staticTrees" is not defined on the instance but referenced during render #7075

Closed
yoyo837 opened this issue Nov 17, 2017 · 3 comments

Comments

@yoyo837
Copy link

yoyo837 commented Nov 17, 2017

Version

2.5.4

Reproduction link

https://github.com/yoyo837/vue-2.5.4-bug-report

Steps to reproduce

When I delete the following code, it works fine, but in 2.5.3 it does not have this problem.

https://github.com/yoyo837/vue-2.5.4-bug-report-pages/blob/cf8565a94b00d9a469026c6c1a15609a72f4c81d/order/_id.vue#L6

    <div class="clip-section">
      <div class="clip-gap clip-gap-left"></div>
      <div class="clip-line"></div>
      <div class="clip-line"></div>
      <div class="clip-gap clip-gap-right"></div>
    </div>

What is expected?

No report error

What is actually happening?

It report:
[Vue warn]: Property or method "_staticTrees" is not defined on the instance but referenced during render. Make sure that this property is reactive, either in the data option, or for class-based components, by initializing the property. See: https://vuejs.org/v2/guide/reactivity.html#Declaring-Reactive-Properties.

found in

@kuoruan
Copy link

kuoruan commented Nov 17, 2017

+1 我今天也遇到了,刚升级的 2.5.4

@posva
Copy link
Member

posva commented Nov 17, 2017

Please follow the Issue Reporting Guidelines and provide a minimal JSFiddle or Github repository containing a set of reproducible steps that can lead to the behaviour you described. Make sure to boil down the problem as much as possible. Thanks!

@yoyo837
Copy link
Author

yoyo837 commented Nov 17, 2017

OK, I'll prepare one and provide later.

lovelope pushed a commit to lovelope/vue that referenced this issue Feb 1, 2018
f2009 pushed a commit to f2009/vue that referenced this issue Jan 25, 2019
aJean pushed a commit to aJean/vue that referenced this issue Aug 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants