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

Vue.set in plain array cause Cannot read properties of undefined (reading 'shallow') in 2.7.3 #12635

Closed
gitpaladin opened this issue Jul 8, 2022 · 1 comment

Comments

@gitpaladin
Copy link

Version

Reproduction link

codesandbox.io

Steps to reproduce

import Vue from "vue";

const a = [1, 2, 3];
Vue.set(a, 1, 100);   // Cannot read properties of undefined (reading 'shallow')

What is expected?

Set the array element by index.

What is actually happening?

Error occured.


Introduced in 2.7.3 with commit

360272b#diff-2e26135213b820cfd0eaba327405d14d405a4eee7d14a5c4acfcc2c84ef14692R244

@yyx990803
Copy link
Member

Duplicate of #12632

@yyx990803 yyx990803 marked this as a duplicate of #12632 Jul 8, 2022
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

No branches or pull requests

2 participants