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

6.0.0-beta.19: Property or method "then" is not defined on the instance but referenced during render #1583

Closed
joelpro2 opened this issue Oct 14, 2021 · 3 comments

Comments

@joelpro2
Copy link

Version

6.0.0-beta.19

Browser and OS info

Chrome 73.0.3683.103 / MacOS High Sierra

Steps to reproduce

Just load any vue app in dev mode.

What is expected?

The console should be empty.

What is actually happening?

The console is full of this kind of errors Property or method "then" is not defined on the instance but referenced during render for every component.

image

@DevilTea
Copy link
Contributor

DevilTea commented Oct 17, 2021

I found that it is caused by the fast-copy's copy method called in here

It seems like modified in commit 18397b0 and this issue existed from beta.16

The fix of #1583 isn't used in here

@DevilTea
Copy link
Contributor

The warning message is triggered when copy the state at here

data.state = copy(state)

Besause of the state pass to the method copy from fast-copy could possibly execute to here
https://github.com/planttheidea/fast-copy/blob/fc0c8e76fbe8b933e3574f996f666d0dd8fefa00/src/index.ts#L170

And it would trigger the vue observable get handler to print warning

In my case that I store the vue-router's Route object into store in router.beforeEach.
The Route object has a matched property that contains vue component.
That make fast-copy try to copy the vue instance and trigger the get handler to print a lot of warning.

Hope this info would help you!

@andrew-productiv
Copy link

Thanks for the quick fix to this. Any word on when you're planning to make a release that includes this fix?

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

4 participants