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
tryOnMounted
not compactible with Vue 2
#3649
Comments
It seems to be caused by the different behavior of the setup function. |
That appears to be a problem with the |
@DarknessChaser This works well on my local, did you get some errors in your local repo or some what? It seems that |
@Doctor-wu 首先感谢您的帮助! 实际上我用的是 vue2.6.11+@vue/composition-api1.7.2的组合。我更新了https://stackblitz.com/edit/vue2-vue-cli-a9cecv?file=src%2Fcomponents%2FHelloWorld.vue上的例子。 |
tryOnMounted
not compactible with Vue 2
OK, it appears to be the bug taken by 1b9673a. It returns |
good news! |
Did you experience this error in your local repo? It seems |
Local seems to be working fine, thanks! |
Describe the bug
The changes in version 10.7.0 #3597 seem to cause useLocalStorage to no longer support vue2.6 and vue2.7.
vue2.6.14 + @vue/composition-api1.7.2 error message
see https://stackblitz.com/edit/vue2-vue-cli-a9cecv?file=src%2Fcomponents%2FHelloWorld.vue
vue 2.7.16-beta.1 error message
see https://codesandbox.io/p/sandbox/vue2-createreusabletemplate-qg4jxm?file=%2Fsrc%2FApp.vue&layout=%257B%2522sidebarPanel%2522%253A%2522EXPLORER%2522%252C%2522rootPanelGroup%2522%253A%257B%2522direction%2522%253A%2522horizontal%2522%252C%2522contentType%2522%253A%2522UNKNOWN%2522%252C%2522type%2522%253A%2522PANEL_GROUP%2522%252C%2522id%2522%253A%2522ROOT_LAYOUT%2522%252C%2522panels%2522%253A%255B%257B%2522type%2522%253A%2522PANEL_GROUP%2522%252C%2522contentType%2522%253A%2522UNKNOWN%2522%252C%2522direction%2522%253A%2522vertical%2522%252C%2522id%2522%253A%2522clq35117p00063b6hk9igf2y2%2522%252C%2522sizes%2522%253A%255B70%252C30%255D%252C%2522panels%2522%253A%255B%257B%2522type%2522%253A%2522PANEL_GROUP%2522%252C%2522contentType%2522%253A%2522EDITOR%2522%252C%2522direction%2522%253A%2522horizontal%2522%252C%2522id%2522%253A%2522EDITOR%2522%252C%2522panels%2522%253A%255B%257B%2522type%2522%253A%2522PANEL%2522%252C%2522contentType%2522%253A%2522EDITOR%2522%252C%2522id%2522%253A%2522clq35117o00023b6h0r5ithxg%2522%257D%255D%257D%252C%257B%2522type%2522%253A%2522PANEL_GROUP%2522%252C%2522contentType%2522%253A%2522SHELLS%2522%252C%2522direction%2522%253A%2522horizontal%2522%252C%2522id%2522%253A%2522SHELLS%2522%252C%2522panels%2522%253A%255B%257B%2522type%2522%253A%2522PANEL%2522%252C%2522contentType%2522%253A%2522SHELLS%2522%252C%2522id%2522%253A%2522clq35117o00033b6hy44e1bro%2522%257D%255D%252C%2522sizes%2522%253A%255B100%255D%257D%255D%257D%252C%257B%2522type%2522%253A%2522PANEL_GROUP%2522%252C%2522contentType%2522%253A%2522DEVTOOLS%2522%252C%2522direction%2522%253A%2522vertical%2522%252C%2522id%2522%253A%2522DEVTOOLS%2522%252C%2522panels%2522%253A%255B%257B%2522type%2522%253A%2522PANEL%2522%252C%2522contentType%2522%253A%2522DEVTOOLS%2522%252C%2522id%2522%253A%2522clq35117o00053b6h3yb2a5t2%2522%257D%255D%252C%2522sizes%2522%253A%255B100%255D%257D%255D%252C%2522sizes%2522%253A%255B50%252C50%255D%257D%252C%2522tabbedPanels%2522%253A%257B%2522clq35117o00023b6h0r5ithxg%2522%253A%257B%2522id%2522%253A%2522clq35117o00023b6h0r5ithxg%2522%252C%2522tabs%2522%253A%255B%257B%2522id%2522%253A%2522clq535zdj00023b6hj4upmz4l%2522%252C%2522mode%2522%253A%2522permanent%2522%252C%2522type%2522%253A%2522FILE%2522%252C%2522filepath%2522%253A%2522%252Fsrc%252FApp.vue%2522%252C%2522state%2522%253A%2522IDLE%2522%257D%255D%252C%2522activeTabId%2522%253A%2522clq535zdj00023b6hj4upmz4l%2522%257D%252C%2522clq35117o00053b6h3yb2a5t2%2522%253A%257B%2522tabs%2522%253A%255B%257B%2522id%2522%253A%2522clq35117o00043b6h92eun3ax%2522%252C%2522mode%2522%253A%2522permanent%2522%252C%2522type%2522%253A%2522UNASSIGNED_PORT%2522%252C%2522port%2522%253A0%252C%2522path%2522%253A%2522%252F%2522%257D%255D%252C%2522id%2522%253A%2522clq35117o00053b6h3yb2a5t2%2522%252C%2522activeTabId%2522%253A%2522clq35117o00043b6h92eun3ax%2522%257D%252C%2522clq35117o00033b6hy44e1bro%2522%253A%257B%2522tabs%2522%253A%255B%255D%252C%2522id%2522%253A%2522clq35117o00033b6hy44e1bro%2522%257D%257D%252C%2522showDevtools%2522%253Atrue%252C%2522showShells%2522%253Atrue%252C%2522showSidebar%2522%253Atrue%252C%2522sidebarPanelSize%2522%253A15%257D
In vue3 it works fine
Reproduction
see https://stackblitz.com/edit/vue2-vue-cli-a9cecv?file=src%2Fcomponents%2FHelloWorld.vue
System Info
Used Package Manager
npm
Validations
The text was updated successfully, but these errors were encountered: