owner stringclasses 14
values | repo stringclasses 14
values | id int64 116k 4.61B | issue_number int32 1 181k | author stringlengths 1 39 | body stringlengths 1 262k | created_at timestamp[us]date 2000-06-06 02:40:44 2026-06-02 20:16:18 | updated_at timestamp[us]date 2000-06-06 02:40:44 2026-06-02 20:22:56 | reactions unknown | author_association stringclasses 5
values |
|---|---|---|---|---|---|---|---|---|---|
vuejs | core | 1,543,129,297 | 8,271 | linghaoSu | Maybe you need `shallowRef` instead of `ref`
https://github.com/vuejs/core/assets/56526981/f14449d2-bc43-4d9c-8385-d5cbcffb4b1c
| 2023-05-11T01:44:06 | 2023-05-11T01:44:06 | {
"+1": 1
} | CONTRIBUTOR |
vuejs | core | 1,544,494,107 | 8,287 | sqal | Just wanted to add that when using dev build there's appropriate warning in the console
```
[Vue warn]: Template compilation error: Tags with side effect (<script> and <style>) are ignored in client component templates.
5 | </div>
6 |
7 | <script src="./app.js"></script>
| ^^^^^^^^^^^^^^^^^^... | 2023-05-11T18:33:53 | 2023-05-11T18:33:53 | {} | CONTRIBUTOR |
vuejs | core | 1,544,501,821 | 8,287 | mashoun | I am very surprised that it actually worked !!
I have been adding the id=app to the body for the past 3 years and it was working very good.
Is there any negative effects if i used https://unpkg.com/vue@3/dist/vue.global.js instead of the .prod version ?
Thank you so much it was very useful | 2023-05-11T18:40:36 | 2023-05-11T18:40:36 | {} | NONE |
vuejs | core | 1,537,845,942 | 8,243 | yyx990803 | It's ok to have code duplication in tests. Sometimes a test may need to be modified to be different from other, extracting even the `--color` into the shared function actually makes it less flexible. | 2023-05-08T06:53:47 | 2023-05-08T06:53:47 | {} | MEMBER |
vuejs | core | 1,537,873,505 | 8,246 | yyx990803 | Sorry! I was testing against the wrong copy of Vue which didn't properly include this change 😅 | 2023-05-08T07:15:57 | 2023-05-08T07:15:57 | {} | MEMBER |
vuejs | core | 1,541,428,605 | 7,987 | sunxi1997 | https://www.cnblogs.com/shanfeng1000/p/16692266.html
https://www.cnblogs.com/shanfeng1000/p/16708878.html
我也遇到这个问题, 这里找到了一些方案, 但是觉得不够好, 如果 vue 可以把 KeepAlive 的 pruneCacheEntry 方法 expose 出来, 这些问题就迎刃而解了 | 2023-05-10T06:33:53 | 2023-05-10T06:33:53 | {} | NONE |
vuejs | core | 1,541,442,567 | 8,263 | Alfred-Skyblue | @baiwusanyu-c Of course, if I consider the performance issue to the extreme, I need to close this PR, but I found that forEach is also used in other places. | 2023-05-10T06:49:10 | 2023-05-10T06:49:10 | {} | MEMBER |
vuejs | core | 1,544,937,987 | 8,285 | an501920078 | Me too! | 2023-05-12T00:36:58 | 2023-05-12T00:36:58 | {
"+1": 1
} | NONE |
vuejs | core | 1,539,326,513 | 7,267 | nickcarterney | I have the same issue, plz merge this PR!
| 2023-05-09T03:13:26 | 2023-05-09T03:13:26 | {} | NONE |
vuejs | core | 1,539,641,126 | 8,259 | baiwusanyu-c | Do you think a new unit test needs to be added?
@yyx990803 | 2023-05-09T08:00:51 | 2023-05-09T08:00:51 | {} | MEMBER |
vuejs | core | 1,543,596,383 | 5,303 | Hulkmaster | for anybody looking for a solution thats what i came up with
```
import {
toRaw,
isRef,
isReactive,
isProxy,
} from 'vue';
export function deepToRaw<T extends Record<string, any>>(sourceObj: T): T {
const objectIterator = (input: any): any => {
if (Array.isArray(input)) {
return input.m... | 2023-05-11T08:49:34 | 2023-05-11T08:49:34 | {
"rocket": 8
} | NONE |
vuejs | core | 1,539,326,338 | 7,268 | nickcarterney | I have the same issue, plz merge this PR! | 2023-05-09T03:13:04 | 2023-05-09T03:13:04 | {
"+1": 1
} | NONE |
vuejs | core | 1,545,192,981 | 8,291 | baiwusanyu-c | > I found this issue earlier, don't know if this PR will fix it
https://deploy-preview-7803--vue-sfc-playground.netlify.app/#eNpNjLEOwjAMRH/F8lJY6F5CJBZmFrYsUWNQpOBYjZOl6r+TiqXLnU5371a8i1xaJZzQlHmJolBIq0Dy/Lk51OLQOg70jkzPJUsxq2OAIfNLgleamk+VhgkelWeNma+ON3s6dzPj/7HzPSh9JXWgJwATYrNm3HXfHTrcfipHNDU= | 2023-05-12T05:36:05 | 2023-05-12T05:36:05 | {} | MEMBER |
vuejs | core | 1,537,975,603 | 8,242 | yyx990803 | Thanks for the PR - see cleaner fix in e1475129 (reused tests from this PR) | 2023-05-08T08:38:20 | 2023-05-08T08:38:20 | {} | MEMBER |
vuejs | core | 1,538,121,671 | 7,271 | ferferga | > I understand that the original poster's issue is that the original get value is just a number, so TypeScript just infers it as a number and needs additional info (in this case a type annotation) to know it can be a string too.
@jacekkarczmarczyk This is why I said it's a solution in my first message, since I believe... | 2023-05-08T10:13:23 | 2023-05-08T10:13:23 | {
"+1": 1
} | CONTRIBUTOR |
vuejs | core | 1,540,191,547 | 8,255 | LinusBorg | Do you mean this project? https://github.com/FranckFreiburger/http-vue-loader
According to its readme there's a successor project for Vue 2 and Vue 3 | 2023-05-09T14:03:54 | 2023-05-09T14:03:54 | {} | MEMBER |
vuejs | core | 1,541,384,078 | 7,267 | hizhengfu | Thanks. Reduce it to 3.2.41 and solve the problem first. | 2023-05-10T05:45:33 | 2023-05-10T05:45:33 | {} | NONE |
vuejs | core | 1,538,969,965 | 8,206 | danielroe | I'm still experiencing this on beta5 (with SSR):
https://play.vuejs.org/#__SSR__eNp9UstugzAQ/JWVLxAJcKQql4hEifoDldIjFwKb4jZ+yDZEVcS/d8HQpmnUC3h3hpnxLle2NybrWmRrlrvKCuPBoW/NtlAAQhptPVyhxpNQuHefqnrW1FSofAIN9HCyWkJEAtHwQaWV83AgGmzgOnQgyMWLuQSw1LAKqLXZQhNHteiiBKJGgG/QYrQIxH54jY+gOrqT7KMscTmCQXIyKi+l8KDwAi+UUTiMLTp97nDgU... | 2023-05-08T20:03:44 | 2023-05-10T08:24:44 | {
"+1": 1
} | MEMBER |
vuejs | core | 1,542,966,178 | 8,074 | Maxim-Mazurok | @edison1105 did the repro help? | 2023-05-11T00:23:25 | 2023-05-11T00:23:25 | {} | NONE |
vuejs | core | 1,543,306,328 | 8,269 | sxzz | Type exporting will not be included in JavaScript files, so it won't really affect the bundle size.
Mainly, we don't want to export all the types to userland.
| 2023-05-11T04:13:50 | 2023-05-11T04:13:50 | {} | MEMBER |
vuejs | core | 1,543,602,547 | 8,271 | Irelynx | > Maybe you need `shallowRef` instead of `ref`
>
> 2023-05-11.09.42.32.mov
Yep, that fixes the issue.
I don't know, is it really a bug in ref implementation or not, so i will wait for other members response.
If someone from Vue core team feels, that it is not a bug - feel free to close this issue :) | 2023-05-11T08:53:51 | 2023-05-11T08:53:51 | {} | NONE |
vuejs | core | 1,543,883,671 | 5,952 | maximilliangeorge | For anyone else waiting, this composable can work as an interim solution:
https://github.com/nuxt/nuxt/issues/13471#issuecomment-1449898517 | 2023-05-11T12:10:51 | 2023-05-11T12:10:51 | {} | NONE |
vuejs | core | 1,544,705,438 | 4,314 | mmazanec22 | ++ to needing this feature for use with popular libraries. This would be helpful for my company's project to incrementally replace legacy WordPress functionality with a Vue app that handles payments and user account management. Stripe elements cannot be mounted in a shadow root. | 2023-05-11T21:29:59 | 2023-05-11T21:29:59 | {
"+1": 3
} | NONE |
vuejs | core | 1,537,922,480 | 7,218 | 100100101 | @xieyuheng
Based on your example, made a similar component
```vue
// Scope/index.vue
<script setup lang="ts">
import { reactive } from 'vue'
</script>
<template>
<slot :="(reactive($attrs) as any)" />
</template>
```
```vue
// ForExampleMemoryStat/index.vue
<script lang="ts" setup>
import Scope fr... | 2023-05-08T08:00:02 | 2023-05-08T08:00:02 | {
"+1": 1
} | NONE |
vuejs | core | 1,538,023,132 | 8,254 | baiwusanyu-c | 3.3 版本后不再需要 | 2023-05-08T09:06:44 | 2023-05-08T09:06:44 | {} | MEMBER |
vuejs | core | 1,538,696,023 | 8,178 | hminghe | Personally think bad!
Because:
```vue
<Comp name />
``` | 2023-05-08T16:32:44 | 2023-05-08T16:33:26 | {} | NONE |
vuejs | core | 1,539,732,928 | 8,259 | baiwusanyu-c | > @baiwusanyu-c
>
> > relate:
> > [62e71b5](https://github.com/vuejs/core/commit/62e71b5320cd9bff57e2f515342dfb0a3ba208ec)
>
> should be [e147512](https://github.com/vuejs/core/commit/e1475129fc6f8c086c2ec667476900b8c8f46774)
ok~ | 2023-05-09T09:00:12 | 2023-05-09T09:00:12 | {} | MEMBER |
vuejs | core | 1,541,053,812 | 6,605 | colinj | Yes, this is a problem since third party components have callback functions that allow users to add custom CSS classes into their components but the problem is that the inserted classes lack scoping therefore they never get "selected" by the scoped CSS when using SCSS/SASS and the `:deep` selector in a nested class. Th... | 2023-05-10T00:24:16 | 2023-05-10T00:25:03 | {} | NONE |
vuejs | core | 1,541,379,087 | 2,600 | harveylee | Leaving this here to help the next person - I had similar issue, and after trying everything to get rid of duplicated vue dependencies, I added this to my `vite.config.ts`:
```ts
resolve: {
mainFields: ['main']
}
```
I'm not entirely sure why that stops multiple instances of vue, but I got the hint to do th... | 2023-05-10T05:38:01 | 2023-05-10T05:38:01 | {} | NONE |
vuejs | core | 1,543,500,142 | 8,270 | jm-sky | Thank You!
It's working now :-) | 2023-05-11T07:46:32 | 2023-05-11T07:46:32 | {} | NONE |
vuejs | core | 1,544,201,770 | 5,952 | liulinboyi | > For anyone else waiting, this composable can work as an interim solution: [nuxt/nuxt#13471 (comment)](https://github.com/nuxt/nuxt/issues/13471#issuecomment-1449898517)
The workaround is Cool! [PlayGround](https://play.vuejs.org/#__DEV__eNplU39r2zAQ/So3M4gDqZVBCyNzA4MVVkgobN1//qOefU602pKRzulG8HffybKcH5Ux2Lp7d+89nY... | 2023-05-11T15:28:37 | 2023-05-11T15:29:58 | {} | MEMBER |
vuejs | core | 1,544,464,270 | 8,287 | sqal | This appears to be caused by mounting the app on the `<body>` tag instead of the "root" element. I don't know why, but it can be easily solved:
```diff
-<body id="app">
- <h1>Test vue</h1>
- {{title}}
+<body>
+ <div id="app">
+ <h1>Test vue</h1>
+ {{title}}
+ </div>
<script ... | 2023-05-11T18:13:17 | 2023-05-11T18:13:17 | {} | CONTRIBUTOR |
vuejs | core | 1,538,083,261 | 3,796 | productdevbook | @yyx990803
There must be a way to send type, attrs only takes data, but if we define interface, at least volar can collect both props and attrs types. This feature opens it to libraries like the read-ui.
Couldn't it be easy to send attrs an interface or type as we can write props in a simple way? | 2023-05-08T09:53:07 | 2023-05-08T09:53:07 | {} | CONTRIBUTOR |
vuejs | core | 1,538,092,956 | 8,254 | baiwusanyu-c | Vue3.3 will be released soon, if your problem is solved, please close this issue | 2023-05-08T09:57:10 | 2023-05-08T09:57:10 | {} | MEMBER |
vuejs | core | 1,541,430,479 | 7,928 | sunxi1997 | 如果 pruneCacheEntry 可以直接 expose 出来, 外部调用是不是更好? | 2023-05-10T06:36:06 | 2023-05-10T06:36:06 | {
"+1": 2
} | NONE |
vuejs | core | 1,543,738,805 | 8,276 | yyx990803 | Sorry, the opt-in config example in the RFC was wrong - it should be
```js
// vite.config.js
export default {
plugins: [
vue({
script: {
defineModel: true
}
})
]
}
``` | 2023-05-11T10:26:09 | 2023-05-11T10:26:09 | {
"+1": 1
} | MEMBER |
vuejs | core | 1,543,971,134 | 8,279 | haoqunjiang | https://github.com/arethetypeswrong/arethetypeswrong.github.io#:~:text=Types%20are%20CJS%2C%20but%20implementation%20is%20ESM
It falls into this category: "Types are CJS, but implementation is ESM".
Not a big deal because Vue 3 never supported default export, but still an improvement if we can error on the type level... | 2023-05-11T13:04:35 | 2023-05-11T13:04:35 | {} | MEMBER |
vuejs | core | 1,545,285,869 | 8,293 | baiwusanyu-c | 
Maybe there is something wrong with the playground too | 2023-05-12T07:13:47 | 2023-05-12T07:13:47 | {} | MEMBER |
vuejs | core | 1,229,200,343 | 6,555 | jaalorsa517 | Thank you very much for your help. @LinusBorg
Unfortunately what you said makes a lot of sense, but I implemented it and it still doesn't work.
You can look at the code and verify that it still doesn't work.
```javascript
import {
defineCustomElement as VueDefineCustomElement,
h,
createApp,
getCurr... | 2022-08-27T14:14:08 | 2022-08-27T14:23:29 | {} | NONE |
vuejs | core | 1,230,552,515 | 6,550 | LinusBorg | update the example please, because it doesn't happen for me:
<img width="666" alt="Bildschirmfoto 2022-08-29 um 18 44 42" src="https://user-images.githubusercontent.com/1444526/187251930-c68d5e39-97a9-4af6-9f9d-37a50bad2500.png">
| 2022-08-29T16:33:46 | 2022-08-29T16:44:58 | {} | MEMBER |
vuejs | core | 1,233,876,399 | 6,532 | johnsoncodehk | For Volar/vue-tsc, please track https://github.com/johnsoncodehk/volar/issues/1798. | 2022-09-01T07:41:32 | 2022-09-01T07:41:32 | {
"+1": 1
} | MEMBER |
vuejs | core | 1,231,929,832 | 6,532 | LinusBorg | @pikax So there's two layers to this:
1. **Runtime/codegen**: There's the problem of code generation: an `optional?:` prop generates a proper runtime prop definition, while a prop with `x | undefined` doesn't. The PR that was already submitted seems to fix this.
2. **Types**: the types that vue-tsc/Volar generates ... | 2022-08-30T17:00:41 | 2022-08-30T17:01:13 | {
"eyes": 1
} | MEMBER |
vuejs | core | 1,232,516,880 | 6,543 | ppyl-datBoi | Sorry, I forgot to write how I fixed the problem. The problem was that I made a typo when I wrote the <script setup> tag.
Therefore, the exportHelpers.js file in the vue-loader/dist folder did not see the sfc option (but this is not accurate).
I understand that the problem was on my part, but it would be nice to some... | 2022-08-31T06:28:52 | 2022-08-31T06:28:52 | {
"heart": 1,
"hooray": 1
} | NONE |
vuejs | core | 1,232,574,367 | 6,349 | sevein | > Maybe this issue has fixed
I don't think so, I've just tested against v3.2.38.
| 2022-08-31T07:37:02 | 2022-08-31T07:37:08 | {} | NONE |
vuejs | core | 1,232,723,753 | 6,401 | posva | Duplicate of #5844 | 2022-08-31T09:54:13 | 2022-08-31T09:54:13 | {} | MEMBER |
vuejs | core | 1,233,641,907 | 6,571 | yanessa-yu | > Please provide a runnable reproduction as is required in our Issue guidelines
https://jsfiddle.net/yanessa/ryu0np73/25/ | 2022-09-01T01:57:41 | 2022-09-01T02:02:17 | {} | NONE |
vuejs | core | 1,235,057,204 | 3,250 | Adrek | I have the same problem. | 2022-09-02T04:35:04 | 2022-09-02T04:35:04 | {} | NONE |
vuejs | core | 1,236,133,661 | 6,589 | yuanxin518 | While excuting this line, you will find this value in input is your preset value 'OK World', it's legitimate, so this.lastValid will be assigned value of this.message but not ''. In result, the value of this.lastValid will always be equal to this.message and the value of localstorage. | 2022-09-03T14:43:35 | 2022-09-03T14:43:35 | {} | NONE |
vuejs | core | 1,227,988,982 | 5,836 | edison1105 | I made a PR. feel free to review.
[playground](https://deploy-preview-6548--vue-sfc-playground.netlify.app/#eNqlVm1v4zYM/itcbkPbQ2Wnl7uh9XLFXj4Owwb0MGCAvyg2HWuVJUOSk+aK/vdRku06TtsPu6IFLJJ6+CLyYR8Xv7RtsutwkS3W3zGWqz90ySUUumm1QuVgL1wNRWedbsRXvpEIVmpngasSfru7A2e4ssIJrWySK8Zuc5WrtS2MaB1YdF1LEkFoxkHEroxu4CxJw8n7PhsNHsFgBU+... | 2022-08-26T02:59:00 | 2022-08-26T02:59:00 | {
"heart": 8
} | MEMBER |
vuejs | core | 1,230,304,988 | 6,248 | Aniruddh-J | I am not waiting for the above code to work in production, as we have already moved the existing codebase to composition API.
I am waiting for a fix for potential app-breaking differences between the dev and production build.
If this behavior is unintended, then either documentation should cover it:
https://... | 2022-08-29T13:26:25 | 2022-08-29T13:26:25 | {} | NONE |
vuejs | core | 1,231,135,872 | 6,563 | zhangenming | 或者至少应该在文档上提出这个坑 | 2022-08-30T04:47:43 | 2022-08-30T04:47:43 | {} | CONTRIBUTOR |
vuejs | core | 1,232,666,460 | 3,399 | yuntian001 | How is it going so far? I hope we could merge this PR as soon as possible because we actually do not have a comfortable DX experience in template writing. | 2022-08-31T08:59:25 | 2022-08-31T08:59:25 | {
"+1": 22
} | NONE |
vuejs | core | 1,232,709,323 | 6,570 | LinusBorg | 1. This is about Vite, not Vue
2. all env variables from .env files are always strings at runtime. Telling typescript otherwise won't change what happens at runtime. | 2022-08-31T09:40:07 | 2022-08-31T09:40:07 | {} | MEMBER |
vuejs | core | 1,234,265,674 | 5,363 | azhar283 | I am seeing the same issue of a large number of detached html elements. However, I have noticed this in chrome. Firefox works fine. If this is a chrome issue, can someone link it here? | 2022-09-01T13:14:44 | 2022-09-01T13:14:44 | {} | NONE |
vuejs | core | 1,235,093,729 | 4,294 | hrishikesh-k | I found that we can used it this way:
```vue
<script
setup
lang = "ts">
import type {Foo} from 'bar'
const props = withDefaults(defineProps<{
foo : Foo
}>(), {
foo: () => {
return {
fooProperty1: default1
}
}
})
</script>
```
Basically, by declaring a pro... | 2022-09-02T05:50:58 | 2022-09-02T05:50:58 | {
"+1": 3
} | NONE |
vuejs | core | 1,235,165,307 | 6,581 | netlify[bot] | ### <span aria-hidden="true">❌</span> Deploy Preview for *vue-sfc-playground* failed.
| Name | Link |
|---------------------------------|------------------------|
|<span aria-hidden="true">🔨</span> Latest commit | 54904a34eb45a78825624ddc32ee6426ff81e4ce |
|<span aria-hidden="true">🔍</span> Latest deploy log | htt... | 2022-09-02T07:29:10 | 2022-09-02T08:02:05 | {} | NONE |
vuejs | core | 1,236,191,106 | 6,591 | MMMMiller | same condition found | 2022-09-03T10:59:43 | 2022-09-03T10:59:43 | {} | NONE |
vuejs | core | 1,229,393,104 | 4,098 | kidonng | > I assume it's not as simple as e.g. replacing `Event` with `InputEvent` for `onInput` or it would probably have been done already
Would like an explanation why they are typed as such. They are only used for JSX so I don't think it would actually break anything.
@pikax kindly asking what's blocking #3370? If tha... | 2022-08-28T06:49:20 | 2022-08-28T06:49:20 | {
"+1": 1
} | CONTRIBUTOR |
vuejs | core | 1,230,006,905 | 6,554 | fall-zhang | I found this problem too.
replace file `runtime-core.d.ts` in line 1846
from: transition: TransitionHooks<HostElement> | null;
to: transition: TransitionHooks<RendererElement> | null;
the error gone.
I've found another 4 error in build. | 2022-08-29T09:21:28 | 2022-08-29T09:21:28 | {} | NONE |
vuejs | core | 1,230,482,611 | 6,550 | visualjerk | My bad, this error actually happens when using:
```ts
import { ref } from 'vue'
```
I was not aware that this is a different implementation as `ref` from `@vue/reactivity`.
Should I open a new issue for this or just update the example?
| 2022-08-29T15:34:07 | 2022-08-29T15:34:07 | {} | NONE |
vuejs | core | 1,231,134,969 | 6,563 | zhangenming | 但一个函数bind后还是字面量函数啊
而且从心智上讲 @click = "func" 和 @click = "func.bind()" 应该正常对待吧
我还是感觉这是一个bug点
| 2022-08-30T04:45:53 | 2022-08-30T04:45:53 | {} | CONTRIBUTOR |
vuejs | core | 1,231,780,847 | 6,549 | LinusBorg | This is indeed expected behavior. Logically, if we allowed this template hierarchy, people would also expect to be able to use slot props from the default slot in the content of a named slot, because that's what the template would suggest:
```html
<template>
<TabSelector v-model="currentTab" v-slot="{ setTab }">... | 2022-08-30T14:53:20 | 2022-08-30T14:55:21 | {
"+1": 1
} | MEMBER |
vuejs | core | 1,232,512,172 | 6,569 | LinusBorg | the eslint errors are just that - eslint errors that can be fixed by running `npm run lint`.
Can't reproduce the original error message though by running this repo. Might be because there was not list of steps provided to actually reproduce it. | 2022-08-31T06:22:04 | 2022-08-31T06:22:04 | {} | MEMBER |
vuejs | core | 1,232,876,529 | 4,814 | pi0 | Thanks for sharing this @kazupon. This is off topic just to share, in nuxt 3, we set `__VUE_PROD_DEVTOOLS__` flag to optimal value but since valid `.mjs` could be also externalized and the fact bundler flag is not always working, I made [vue-devtools-stub](https://github.com/nuxt-contrib/vue-devtools-stub) that _stubs_... | 2022-08-31T12:32:12 | 2022-08-31T20:31:54 | {} | NONE |
vuejs | core | 1,233,809,042 | 6,310 | okchenyi | 不会报错吗 Failed to resolve module specifier "Vue". Relative references must start with either "/", "./", or "../". | 2022-09-01T06:34:56 | 2022-09-01T06:34:56 | {} | NONE |
vuejs | core | 1,048,655,007 | 5,474 | netlify[bot] | ### <span aria-hidden="true">❌</span> Deploy Preview for *vue-sfc-playground* failed.
| Name | Link |
|---------------------------------|------------------------|
|<span aria-hidden="true">🔨</span> Latest commit | a8052a41f2bdade85b207f65f2ed31f7fc69ddb6 |
|<span aria-hidden="true">🔍</span> Latest deploy log | htt... | 2022-02-23T10:47:09 | 2022-09-02T06:48:07 | {} | NONE |
vuejs | core | 1,229,203,459 | 6,555 | LinusBorg | ```diff
- setup(props) {
+ setup(props, { emit }) {
// ....
- ondemo: (...args) => inst.emit("demo", ...args),
+ onDemo: (...args) => emit("demo", ...args),
```
you have a misspelled prop, and also don't need to use `getCurrentInstance()` | 2022-08-27T14:31:35 | 2022-08-27T14:33:46 | {
"heart": 1
} | MEMBER |
vuejs | core | 1,230,219,140 | 6,248 | LinusBorg | No. As I'm worried you are waiting for a solution that will never arrive, let me specify how we see this situation:
* the dev behavior is unintended and needs to be fixed.
* the prod behavior is correct
So in case you are waiting for a fix that will make your above code work, I'm sorry to disappoint you. You wil... | 2022-08-29T12:27:36 | 2022-08-29T12:29:18 | {} | MEMBER |
vuejs | core | 1,231,917,568 | 6,007 | LinusBorg | I'd also be interested to understand why the workaround is not " feasable from a backend perspective" in order to better understand the impact.
Technically, forcing these props to be set as attributes (with the `.attr` modifier) is a valid workaround from our perspective. | 2022-08-30T16:48:36 | 2022-08-30T16:48:36 | {} | MEMBER |
vuejs | core | 1,234,006,117 | 6,571 | yanessa-yu | > Please provide a runnable reproduction as is required in our Issue guidelines
> Workaround: add a key to the element which changes when you switch from one to the other.
Ok, thinks. | 2022-09-01T09:22:41 | 2022-09-01T09:22:41 | {} | NONE |
vuejs | core | 1,228,348,819 | 5,584 | xcash | Ok guys (and @mileusna in particular) we've just faced this issue when releasing in production. We had a component which used a "mixed mode".
We had a `<script setup>` with all the imports and a legacy `<script>` section with the old-style component code using `data()`.
In development it worked flawlessy but in prod... | 2022-08-26T10:51:47 | 2022-08-26T11:01:24 | {
"+1": 6,
"heart": 2,
"rocket": 2
} | NONE |
vuejs | core | 1,231,135,527 | 6,563 | zhangenming | ```js
<button @click="f"> btn 1</button>
<button @click="f.bind()"> btn 2</button>
<button @click="f()"> btn 3</button>
<button @click="f.bind()()"> btn 4</button>
```
而且从js语法上来看
这四种应该也是没区别的
vue也应该做出相应的回应吧
谢谢 | 2022-08-30T04:47:03 | 2022-08-30T04:47:03 | {} | CONTRIBUTOR |
vuejs | core | 1,231,202,805 | 4,077 | netlify[bot] | ### <span aria-hidden="true">❌</span> Deploy Preview for *vue-sfc-playground* failed.
| Name | Link |
|---------------------------------|------------------------|
|<span aria-hidden="true">🔨</span> Latest commit | 68809eb94c6c233b7de4f0bb6c8d796dc2825bad |
|<span aria-hidden="true">🔍</span> Latest deploy log | htt... | 2022-08-30T06:26:42 | 2022-08-30T06:26:42 | {} | NONE |
vuejs | core | 1,236,144,205 | 6,589 | yuanxin518 | Yes, the problem is that you didn't make the value of the input box equal to the value of this.message in time. | 2022-09-03T15:31:42 | 2022-09-03T15:31:42 | {} | NONE |
vuejs | core | 1,229,591,076 | 6,201 | antfu | PR for the fix: https://github.com/vuejs/core/pull/6489 | 2022-08-29T00:09:39 | 2022-08-29T00:09:39 | {} | MEMBER |
vuejs | core | 1,233,884,284 | 6,575 | netlify[bot] | ### <span aria-hidden="true">❌</span> Deploy Preview for *vue-sfc-playground* failed.
| Name | Link |
|---------------------------------|------------------------|
|<span aria-hidden="true">🔨</span> Latest commit | 7caa8201df19f43cb756c8c5143809907f2061ad |
|<span aria-hidden="true">🔍</span> Latest deploy log | htt... | 2022-09-01T07:49:01 | 2022-09-01T07:49:01 | {} | NONE |
vuejs | core | 1,236,131,485 | 6,589 | yuanxin518 | You can try to clear the value in input before excute this line. 'this.lastValid = document.querySelector('input').validity.valid ? this.message : ''' | 2022-09-03T14:33:44 | 2022-09-03T14:33:44 | {} | NONE |
vuejs | core | 1,236,175,975 | 6,589 | LinusBorg | I'll cover this into a discussion as it's not a bug. | 2022-09-03T18:15:28 | 2022-09-03T18:15:28 | {} | MEMBER |
vuejs | core | 1,236,254,459 | 6,592 | netlify[bot] | ### <span aria-hidden="true">❌</span> Deploy Preview for *vue-sfc-playground* failed.
| Name | Link |
|---------------------------------|------------------------|
|<span aria-hidden="true">🔨</span> Latest commit | e8d300d1eb4f537df73c60d49a5f0009e69a05bb |
|<span aria-hidden="true">🔍</span> Latest deploy log | htt... | 2022-09-04T04:04:17 | 2022-09-04T04:04:17 | {} | NONE |
vuejs | core | 1,228,291,579 | 6,387 | tsxoxo | Thanks for all the feedback!
I learned much about `transform`.
---
The issue of `<span>` not wanting to move has been answered for me :). (see links in [@sadeghbarati's answer](https://github.com/vuejs/core/issues/6387#issuecomment-1217447008))
Still ot sure about the veering to the left or the disappearin... | 2022-08-26T09:47:08 | 2022-08-26T09:47:08 | {
"heart": 1
} | NONE |
vuejs | core | 1,231,072,012 | 6,509 | mefcorvi | Can't this be achieved by using the `async setup` and `Suspense`? Or by using the navigation guards from vue-router? | 2022-08-30T02:34:58 | 2022-08-30T02:34:58 | {} | CONTRIBUTOR |
vuejs | core | 1,233,179,746 | 6,499 | EmmyMay | > The `\s` should be replaced with a RegExp allow all non-indentifier characters.
which of the `/s` ? | 2022-08-31T16:47:20 | 2022-08-31T16:47:20 | {} | NONE |
vuejs | core | 1,233,897,161 | 6,576 | netlify[bot] | ### <span aria-hidden="true">❌</span> Deploy Preview for *vue-sfc-playground* failed.
| Name | Link |
|---------------------------------|------------------------|
|<span aria-hidden="true">🔨</span> Latest commit | 6ebdfcd2397ad259908cccfc130e0a7e0b519c06 |
|<span aria-hidden="true">🔍</span> Latest deploy log | htt... | 2022-09-01T08:01:23 | 2022-09-01T08:01:23 | {} | NONE |
vuejs | core | 1,236,191,361 | 6,591 | posva | Transfered from Vue router and added [a repro without it](https://sfc.vuejs.org/#eNrlVMGO0zAQ/ZVROLQrNXHpFoRCW8qBAxIHDohTLmnipqaJbdlOl6rqv/OcNGmyu0LcuUSemTfz/GbGuQSftY5ONQ/iYGUzI7SjMpXFOgmcTQKy3NV6k0hRaWUcXShTla4dz2dk+J6utDeqogkKTHrQ97Tg39Kzqt0tGrG7y3PdoV8q7c4+2CN7zw2YyH0tMyeUJKeKouQ/BX+aPtAlkUQ6dYfolJY1p/XIWK9pwib0Cd9... | 2022-09-03T20:05:32 | 2022-09-03T20:05:32 | {
"+1": 4
} | MEMBER |
vuejs | core | 1,231,430,302 | 3,936 | nntai | I faced this issue when there's one data object is null/undefined and component access to its child value while mounting.
In @Daniel-Musunza case, it could be because `product` after find is null (not found) -> `product.price` throwing error. | 2022-08-30T09:46:48 | 2022-08-30T09:46:48 | {
"+1": 1
} | NONE |
vuejs | core | 1,232,468,857 | 6,553 | yyx990803 | Ugh, you should **never** use `v-html` on a component. A component is supposed to manage its own DOM tree. Using `v-html` completely defeats the purpose of using a component at all, why not just use it on a plain `<div>`?
We should probably just make this a compile time error. | 2022-08-31T05:07:39 | 2022-08-31T05:08:36 | {
"+1": 3,
"-1": 12
} | MEMBER |
vuejs | core | 1,232,760,219 | 4,344 | Eug620 | >
Brother, have you solved it? The micro front end I tested also encountered this problem. When the father and son are vite + vue3 first load no problem, the switch encountered this situation, if you finally solve it, please tell me | 2022-08-31T10:30:15 | 2022-08-31T10:30:15 | {} | NONE |
vuejs | core | 1,235,943,993 | 6,295 | decademoon | > Comments are always preserved during development.
But not for `vue-loader` it seems. The docs are inconsistent. | 2022-09-02T22:31:57 | 2022-09-02T22:31:57 | {} | NONE |
vuejs | core | 1,236,332,076 | 6,595 | netlify[bot] | ### <span aria-hidden="true">❌</span> Deploy Preview for *vue-sfc-playground* failed.
| Name | Link |
|---------------------------------|------------------------|
|<span aria-hidden="true">🔨</span> Latest commit | 490a49327603585361eeea097275dc2d56950374 |
|<span aria-hidden="true">🔍</span> Latest deploy log | htt... | 2022-09-04T12:41:45 | 2022-09-04T12:41:45 | {} | NONE |
vuejs | core | 1,236,601,599 | 4,745 | gplusdotgr | > Is there any way to disable the warning? We are upgrading an exiting project from Vue 2x to Vue 3. Due to technical reasons out of scope to explain here, we have +12000 lines of scss nested under a single ::v-deep { .. }. It's not an alternative for us to wrap every single class in a :deep(..)
@yyx990803 we would ... | 2022-09-05T06:46:33 | 2022-09-05T06:46:33 | {
"+1": 9
} | NONE |
vuejs | core | 1,228,848,984 | 6,554 | catrope | I tried just changing the second type parameter of `VNode` from `HostElement = RendererElement` to `HostElement extends RendererElement = RendererElement`, but that causes a bunch of new errors, and resolving those causes more new errors, etc. What's going on seems to be not quite the same issue as https://devblogs.mic... | 2022-08-26T19:38:35 | 2022-08-26T19:38:35 | {} | CONTRIBUTOR |
vuejs | core | 1,231,924,874 | 6,568 | LinusBorg | A compiler optimization hoists these elements as one static HTML string, which removes the runtime type information that was present in the binding.
```js
const _hoisted_1 = /*#__PURE__*/_createStaticVNode("<option value=\"1\">One</option><option value=\"2\">Two</option><option value=\"3\">Three</option><option value... | 2022-08-30T16:55:52 | 2022-08-30T16:56:42 | {} | MEMBER |
vuejs | core | 1,233,001,940 | 4,294 | benounnas | i tried most of these workarounds, how it's not supported yet? the vite plugin works but it's a little bit frustrating when facing this issue | 2022-08-31T14:18:44 | 2022-08-31T14:18:44 | {} | NONE |
vuejs | core | 1,234,036,104 | 2,015 | Obapelumi | @patforg super useful thanks! | 2022-09-01T09:48:54 | 2022-09-01T09:48:54 | {
"+1": 1
} | NONE |
vuejs | core | 1,235,234,918 | 6,202 | shigma | Glad to see this closed, but the fix 00036bb seems to break vuepress [build](https://github.com/koishijs/koishijs.github.io/runs/8140746236?check_suite_focus=true#step:12:14). After downgrading vue version to 3.2.37, the error [disappeared](https://github.com/koishijs/koishijs.github.io/runs/8152452501?check_suite_focu... | 2022-09-02T08:43:03 | 2022-09-02T08:44:33 | {} | CONTRIBUTOR |
vuejs | core | 1,236,143,693 | 6,589 | yuanxin518 | ```
handleInput() {
this.message = this.message.replaceAll(' ', '')
const input = document.querySelector('input')
input.value = this.message
this.lastValid = input.validity.valid ? this.message : ''
}
```
I think that. | 2022-09-03T15:28:57 | 2022-09-03T15:28:57 | {} | NONE |
vuejs | core | 1,230,193,018 | 6,248 | Aniruddh-J | Sorry to bug you guys.
Any news on this? | 2022-08-29T12:03:45 | 2022-08-29T12:03:45 | {} | NONE |
vuejs | core | 1,231,202,897 | 4,077 | netlify[bot] | ### <span aria-hidden="true">❌</span> Deploy Preview for *vuejs-coverage* failed.
| Name | Link |
|---------------------------------|------------------------|
|<span aria-hidden="true">🔨</span> Latest commit | 68809eb94c6c233b7de4f0bb6c8d796dc2825bad |
|<span aria-hidden="true">🔍</span> Latest deploy log | https:/... | 2022-08-30T06:26:48 | 2022-08-30T06:26:48 | {} | NONE |
vuejs | core | 1,233,122,128 | 6,569 | brandonapol | Figured it out this morning. I believe it has to do with the web sockets and running the app locally, I accidentally re-created the issue this morning when I opened my macbook again after leaving it closed overnight. Whatever happens when I close my laptop and open it up again means I have to re-start the Vue app to ma... | 2022-08-31T15:53:55 | 2022-08-31T15:55:21 | {} | NONE |
vuejs | core | 1,233,909,097 | 6,577 | netlify[bot] | ### <span aria-hidden="true">❌</span> Deploy Preview for *vue-sfc-playground* failed.
| Name | Link |
|---------------------------------|------------------------|
|<span aria-hidden="true">🔨</span> Latest commit | 56cc0d57bf693d36de8d355478b2aea5f250e9aa |
|<span aria-hidden="true">🔍</span> Latest deploy log | htt... | 2022-09-01T08:10:12 | 2022-09-01T08:10:12 | {} | NONE |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.