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,317,428,974
6,390
jaytonic
> > Whenever I save changes to the project files, the npm run serve process recompiles the code but the browser does not show a reload message and it takes 10-15s before the changes are reflected in the browser. > > What @Melbourneandrew said is that it takes a long time for the page to update, which is different fr...
2022-11-16T17:57:20
2022-11-16T17:57:20
{}
NONE
vuejs
core
1,319,591,167
7,168
liuseen-l
function targetTypeMap(rawType: string) { switch (rawType) { case 'Object': case 'Array': return TargetType.COMMON case 'Map': case 'Set': case 'WeakMap': case 'WeakSet': return TargetType.COLLECTION default: return TargetType.INVALID } } The object type y...
2022-11-18T06:09:13
2022-11-18T06:09:13
{}
CONTRIBUTOR
vuejs
core
1,323,643,487
7,169
tolking
> duplicate of #6152 ? I feel that the reasons for the two issues are different
2022-11-22T13:00:33
2022-11-22T13:00:33
{}
CONTRIBUTOR
vuejs
core
1,324,661,237
6,984
LinusBorg
@PurpleTape you get two console logs because your setup includes two vue copies. use Vite's `dedupe`option to make it ensure that the same Vue copy is used for all modules in your app.
2022-11-23T07:42:30
2022-11-23T07:42:30
{}
MEMBER
vuejs
core
1,240,840,906
4,294
wangrongding
👍Good wit
2022-09-08T15:01:44
2022-11-16T00:54:01
{}
NONE
vuejs
core
1,318,271,999
7,161
LinusBorg
> const makeHammerBox = makeBox< Hammer >('hammer'); I suggest you read the linked TS docs.
2022-11-17T08:34:20
2022-11-17T08:34:20
{}
MEMBER
vuejs
core
1,318,208,634
7,160
LittleSound
> Computed properties are lazily evaluated. So to know wether or not their value ha changed, the need to be read by some code. So effects depending on a computed property need to run in order to find out wether the return value has changed. > > details: https://dev.to/linusborg/vue-when-a-computed-property-can-be-th...
2022-11-17T07:34:52
2022-11-17T13:02:16
{}
MEMBER
vuejs
core
1,318,720,153
7,164
LinusBorg
You misunderstand how scoped slots work. passing props to the slots function makes them available to the slot content, it does not apply them automatically. you need to do that yourself: ```html <Mask v-slot="extendProps"> <Header v-bind="extendProps" /> </Mask> ``` docs: https://cn.vuejs.org/guide/compon...
2022-11-17T14:27:48
2022-11-17T14:27:48
{ "+1": 1 }
MEMBER
vuejs
core
1,320,903,377
7,030
rudyxu1102
Here is [this reproduction with Vue only](https://sfc.vuejs.org/#eNqVU81ymzAQfpU1F8gMhvGVwe7fpcdMp51edCGwxrhC0kjCPjDc23fKO+UVukKY4GTqNCckfbvf7n770QeflEpOHQZZkJtSN8qCQdupHRNNq6S20IPGfQxKy1NTIQyw17KFkHLCOeaLbNX0nqTu4igJLqUwFqysa46wdUSR1R3eXZBDISqO3y94dAfbHfRMwJSTnAreOWS1vDMxMDH1E4UeCeMphbjz1E9CM9DFYqt4YZFuAPlDZ60U8LHkTfl...
2022-11-19T15:02:21
2022-11-19T16:26:23
{ "+1": 5 }
CONTRIBUTOR
vuejs
core
1,322,494,492
7,186
LinusBorg
Fontawesome is messing with the `<i>` elements that Vue rendered, breaking its update process. Solution: use a proper font-awesome integration dor vue.
2022-11-21T18:41:25
2022-11-21T18:41:25
{ "heart": 1 }
MEMBER
vuejs
core
1,323,338,776
7,173
sxzz
Yeah. Once it gets supported in Vue compiler, then ESLint, Volar, and other tools have to support this feature as well.
2022-11-22T09:11:13
2022-11-22T09:11:13
{}
MEMBER
vuejs
core
1,316,623,074
7,129
yyx990803
The docs is only meant to illustrate how `v-model` is compiled internally, it's not meant to be a public API. Maybe we should make it clear in the docs. Either way, there is no reason to be writing `@update:modelValue` manually on `<input>` element, either use `@input` or `@change`.
2022-11-16T08:53:19
2022-11-16T08:53:19
{}
MEMBER
vuejs
core
1,317,172,771
7,150
liulinboyi
> As the docs mentioned, for the object type, it's good to provide the function to generate the default value (`{ type: Object, default: () => ({ foo: 'foo' }) }`). But this feature is for `Array` and `Object` only, not for functions. > > For a function default value, it's impossible to figure out if it's exactly th...
2022-11-16T15:10:09
2022-11-16T15:10:09
{}
MEMBER
vuejs
core
1,317,914,727
7,156
baiwusanyu-c
What problem can this feature solve?As far as I know, now with `unplugin-vue-components` and `unplugin-auto-import` you don't even need to import components manually
2022-11-17T01:15:15
2022-11-17T01:15:15
{}
MEMBER
vuejs
core
1,322,112,291
7,185
vanillajonathan
That's not what I meant. That is when user has installed the devtools in their web browser. I meant a stand-alone Vue devtools embedded on the Vue SFC Playground so users without the Vue devtools extension installed can use the Vue devtools.
2022-11-21T14:02:19
2022-11-21T14:02:19
{}
NONE
vuejs
core
1,324,658,379
7,196
LinusBorg
In Javascript, reassigning an array (or any object, for that matter) to a new variable does not create a "new array". it just creates a new reference to the same array. Consequently, the behavior you are seeing it expected - the first two functions operate on the original array, mutating it. the latter two operate o...
2022-11-23T07:38:35
2022-11-23T07:38:35
{}
MEMBER
vuejs
core
1,316,274,768
7,143
baiwusanyu-c
You can provide the best reproduction on stackblitz
2022-11-16T03:35:29
2022-11-16T03:35:29
{}
MEMBER
vuejs
core
1,317,022,973
7,147
liulinboyi
> A readonly proxy is deep: any nested property accessed will be readonly as well. It also has the same ref-unwrapping behavior as reactive(), except the unwrapped values will also be made readonly. > To avoid the deep conversion, use [shallowReadonly()](https://vuejs.org/api/reactivity-advanced.html#shallowreadonly...
2022-11-16T13:28:21
2022-11-16T13:28:21
{ "+1": 1 }
MEMBER
vuejs
core
1,317,069,239
7,150
nkoehring
> I think the result `() => (n => n + 2)` is right, the default props suggest use a factory function. ~ snip ~ > I think the `Function` may also need use a factory function I don't think this makes sense. There is no reason to transport functions inside functions. The reason for using factory functions is to a...
2022-11-16T14:00:25
2022-11-16T14:00:25
{}
NONE
vuejs
core
1,319,610,425
7,169
baiwusanyu-c
你的意思是给容器添加`<!--teleport anchor--><button>Button</button><!--teleport anchor-->` 但最终渲染到浏览器少了一个 `<!--teleport anchor-->` 吗 [reproduce](https://sfc.vuejs.org/#__DEV____SSR__eNp9UF1vwyAM/CvMey3hPWKRtt/BSz68NVUDyDjZpCr/fSah07S15QXf+XwHvsBrjNUyI9RgU09jZJWQ59g4b81OSCmAcYrnllGQUnYYl63IJwM1Di8OuvDloLFPWjOeMQZi1fr+GEjrxnYzc/DN...
2022-11-18T06:40:48
2022-11-18T06:41:23
{}
MEMBER
vuejs
core
1,319,668,233
7,169
baiwusanyu-c
I think this usage does not conform to the documentation. It is pointed out in the documentation that when rendering a teleport in ssr, its target container should only contain the rendered content of the teleport, that is, the initial container should not contain child nodes ![image](https://user-images.githubusercon...
2022-11-18T08:03:38
2022-11-18T08:03:38
{}
MEMBER
vuejs
core
1,319,736,085
7,143
zhangzhonghe
> In fact, I can't reproduce in another project I built new, so I will check whether it is a project configuration problem. If you reproduce the problem please feel free to reopen this issue. thanks for your report. @aizela
2022-11-18T09:14:29
2022-11-18T09:14:29
{}
MEMBER
vuejs
core
1,321,867,635
7,185
sxzz
Supported already. Make sure it's DEV environment. <img width="1372" alt="image" src="https://user-images.githubusercontent.com/6481596/203032985-b8eea8f4-8438-4487-a0e0-0d82f98235d9.png">
2022-11-21T10:55:12
2022-11-21T10:55:12
{}
MEMBER
vuejs
core
1,322,292,655
7,185
sxzz
But why? Why don't to install devtools in the browsers? I didn't see any benefits and it'll make SFC playground more complex. I prefer to keep it simple. P.S Maybe you should new an issue in [vuejs/repl](https://github.com/vuejs/repl)
2022-11-21T16:06:48
2022-11-21T16:08:10
{}
MEMBER
vuejs
core
1,316,623,386
6,851
van-fe
I use an only render `slots.default` component to avoid this bug temporarily. https://sfc.vuejs.org/#eNqNU9tq20AQ/ZWpKEgGeZVenlzZpCSF9iHkoYU+RHlQpLGtZi/q7spOMPqRfkv/qb/Q2dUlVkLTgEDMnJlz5rJzCD7WNds1GCyC1BS6qi0YtE29ymQlaqUtHEDjOobG4FeurIEW1loJCCkp/DBGnSlR9wBLnOFIHZ4mHS0RkmFR1Dy3SBZA6uJWaVntvAmw/4n+66w0cUjq2SggTcbkIA46...
2022-11-16T08:53:33
2022-11-16T08:53:33
{}
NONE
vuejs
core
1,316,641,591
7,129
peakDragonCheung
thanks
2022-11-16T09:05:30
2022-11-16T09:05:30
{}
NONE
vuejs
core
1,319,008,540
6,365
sxzz
Duplicated of #5100
2022-11-17T18:01:26
2022-11-17T18:01:26
{}
MEMBER
vuejs
core
1,319,979,293
7,174
sxzz
FYI: [Doc](https://pnpm.io/only-allow-pnpm)
2022-11-18T13:13:14
2022-11-18T13:13:14
{}
MEMBER
vuejs
core
1,320,668,111
7,176
hydrati
thanks @sxzz @enkot
2022-11-18T23:52:09
2022-11-18T23:52:09
{}
NONE
vuejs
core
1,316,734,855
7,149
netlify[bot]
### <span aria-hidden="true">❌</span> Deploy Preview for *vuejs-coverage* failed. | Name | Link | |---------------------------------|------------------------| |<span aria-hidden="true">🔨</span> Latest commit | 3c3f9f0f4b3565c231704071a4bd48fbb80a1929 | |<span aria-hidden="true">🔍</span> Latest deploy log | https:/...
2022-11-16T10:08:32
2022-11-16T12:35:08
{}
NONE
vuejs
core
1,317,063,881
7,150
liulinboyi
I think the result `() => (n => n + 2)` is right, the default props suggest use a factory function. https://vuejs.org/guide/typescript/composition-api.html#props-default-values ![image](https://user-images.githubusercontent.com/41336612/202199435-8b3ce575-6b41-4ac0-b021-ef5d3414cb8d.png) https://vuejs.org/guid...
2022-11-16T13:56:50
2022-11-16T13:58:31
{}
MEMBER
vuejs
core
1,317,200,520
7,154
yuri-li
https://github.com/vuejs/core/pull/7152
2022-11-16T15:28:10
2022-11-16T15:28:10
{}
NONE
vuejs
core
1,317,984,859
7,156
baiwusanyu-c
> It will resolve the path `/order/Index.vue` and get the component name with `order`, instead of `Index` I get it 😄
2022-11-17T02:49:17
2022-11-17T02:49:17
{}
MEMBER
vuejs
core
1,319,015,818
7,156
yuri-li
> So this should be moved to the devtools repo? Do you want to move the question to "vue devtools repo"? Sorry, I made a mistake. I thought you were going to throw the problem to vscode, chrome plugins, webstorm, Intellij idea and other tools
2022-11-17T18:07:42
2022-11-17T18:07:42
{}
NONE
vuejs
core
1,320,866,670
6,997
wister
Hello, I was having this question as well. After reading the docs on [state management](https://nuxt.com/docs/getting-started/state-management/) of Nuxt3. @webfansplz In your example [Mini Repo](https://stackblitz.com/edit/nuxt-starter-kejkyh?file=app.vue), you can use `useState` instead of `ref`, as this is shared ...
2022-11-19T11:43:48
2022-11-19T11:43:48
{}
NONE
vuejs
core
1,321,137,073
7,177
godxiaoji
It's similar to #5847.
2022-11-20T13:45:54
2022-11-20T13:45:54
{}
CONTRIBUTOR
vuejs
core
1,322,548,498
7,187
LinusBorg
Please provide a reproduction that does not use Nuxt, or open an issue in their repo
2022-11-21T19:31:12
2022-11-21T19:31:23
{}
MEMBER
vuejs
core
1,323,306,402
6,984
PurpleTape
I think I understand what the problem is. Let's modify the module_test_plugin file.ts in @test/module and add console.log() to it: ```ts import type { InjectionKey } from "vue"; console.log('Look at me!') // Added export const moduleProvideTestKey = Symbol("module provide test") as InjectionKey<string>; ex...
2022-11-22T08:45:47
2022-11-22T08:45:47
{}
NONE
vuejs
core
1,207,423,823
6,420
LinusBorg
> But, I think, the main topic of this issue is that it is impossible to separate Ref<string> from Ref<undefined> If you have an optional prop (= it can be `undefined`), then a ref created from that optional prop will possibly contain `undefined`. That's not a bug, and Vue can't solve that for you - you need to do t...
2022-08-07T14:44:22
2022-08-07T14:46:22
{}
MEMBER
vuejs
core
1,207,444,312
6,420
LinusBorg
@pikax you sure? I think what OP tries to do here would require casting or a new ref. They are checking for .value to not be nullish, but that will *not* make the *existing* `Ref<string | undefined>` ref into `Ref<string>`, as it could be set to undefined later again. Object ins TS can never change their original t...
2022-08-07T16:44:16
2022-08-07T20:26:03
{}
MEMBER
vuejs
core
1,214,079,826
5,678
woow-wu7
I have the same problem ------- error ------- main.2ff0ecbab0eb3f2c70e2.js:634 Uncaught TypeError: Cannot read properties of null (reading 'setupContext') at sr (runtime-core.esm-bundler.js?0d3f:7489:14) at setup (index.vue?3169:39:7) at callWithErrorHandling (runtime-core.esm-bundler.js?85e2:155:24...
2022-08-13T09:22:37
2022-08-13T09:24:24
{}
NONE
vuejs
core
1,214,675,788
6,448
KaelWD
#2633 - keys can basically be `{}`
2022-08-15T06:45:20
2022-08-15T06:45:52
{}
CONTRIBUTOR
vuejs
core
1,216,270,409
5,673
ItsReddi
@posva it is a pain that this is working in dev environment but not in the build. Should definitly not working in dev, then.
2022-08-16T07:47:34
2022-08-16T07:47:34
{ "+1": 1 }
NONE
vuejs
core
1,216,287,071
6,478
a145789
```js getName(state){ return (index: number)=>{ let temp:string[]=[] state.name[index].forEach((item)=>{ temp.push(item.name) }) return temp } } ``` 这个 `getter` 这么写和一个`普通的函数`没什么区别,`computed` 的追...
2022-08-16T08:05:18
2022-08-16T08:05:18
{}
NONE
vuejs
core
1,216,405,156
6,478
kaitian996
有什么办法能让组件中的proxy对象的属性依赖 ` getName(state){ return (index: number)=>{ let temp:string[]=[] state.name[index].forEach((item)=>{ temp.push(item.name) }) return temp } } ` 这样的getter,并且当stor...
2022-08-16T09:42:22
2022-08-16T09:42:52
{}
NONE
vuejs
core
1,216,438,216
4,294
vdseregin
I found some hack. Currently, it works for me. Just wrap imported type with `Omit`. ``` <script setup lang="ts"> import { Button as AButton, ButtonProps } from "ant-design-vue"; interface Props extends Omit<ButtonProps, ""> {} const props = defineProps<Props>(); </script> <template> <AButton v-bin...
2022-08-16T10:13:22
2022-08-16T10:13:22
{ "-1": 3, "eyes": 7, "heart": 4 }
NONE
vuejs
core
1,207,389,491
6,417
LinusBorg
Hard to debug a screenshot. Looks like an inconstency wirh thr types when using toRefs() on an optional property. As rhis is unrelated to
2022-08-07T11:42:51
2022-08-07T11:42:51
{}
MEMBER
vuejs
core
1,207,425,372
6,420
pikax
> Did you check the reproduction? Your reproduction code is invalid, you are assigning `ref<string>` to a `string`. The only valid point is the `Ref<string | undefined> | undefined` which is a bug.
2022-08-07T14:53:39
2022-08-07T20:25:37
{}
MEMBER
vuejs
core
1,209,280,724
6,088
kmohrf
Interestingly parenthesis seem to be kind of optional even for iterations with index: `v-for="{ data: renamedData, level }, index in myList"` works from the vue-side of things but trips my IDE as well as prettier and does not seem to be recommended by the official documentation. `v-for="({ data: renamedData, leve...
2022-08-09T11:51:56
2022-08-09T11:51:56
{ "+1": 2 }
NONE
vuejs
core
1,210,425,873
6,442
liuhanqu
temporally use `v-text` to solve this problem
2022-08-10T09:42:34
2022-08-10T09:42:34
{}
NONE
vuejs
core
1,210,444,545
6,441
LinusBorg
That's kinda hard to figure out or explain. The typings for Option API's `this` are inherently circular: the type if `this` depends on the return values of options like the computed properties, as those become properties on `this`, but the return type of your un-annotated computed property depends on the `this` type. ...
2022-08-10T09:59:10
2022-08-10T09:59:10
{ "+1": 2 }
MEMBER
vuejs
core
1,211,439,267
6,446
edison1105
see https://github.com/vuejs/core/pull/3215
2022-08-11T00:36:19
2022-08-11T00:36:19
{}
MEMBER
vuejs
core
1,212,768,586
6,450
joisun
It seems is actually usage problem, there is no initial value cause errors and stack the render. may should use it with : 1. `defineAsyncComponent ` to create a async component. 2. or use v-if before fetched data from api. 3. or define a set of initial value 4. or do not use Destructuring, cause duaring dest...
2022-08-12T06:20:32
2022-08-12T06:20:32
{}
NONE
vuejs
core
1,214,459,923
3,933
aprovent
I encounter the same bug in Chrome. I have a main VueJS app that load, one by one, multiple apps in an iframe. All works perfectly, except the events in iframe apps. At the first load, the events are fired with a little delay, and as navigation go, the delay increase and the apps become unusable. Thanks @Aurelie...
2022-08-14T22:21:53
2022-08-14T22:21:53
{ "+1": 1 }
NONE
vuejs
core
1,214,669,927
5,047
anchengjian
same problem,Is there any solution?
2022-08-15T06:34:39
2022-08-15T06:34:39
{}
NONE
vuejs
core
1,214,673,318
5,579
bonilka
I met same problem. I created [repository ](https://github.com/bonilka/vue-slot-demo) for reproducing. Demo shows input with available clickable options. If you click on one of element, you'll see that update hook will called on each element. (It shows on page _Children updated_ and in console). If remove slot t...
2022-08-15T06:40:48
2022-08-15T06:40:48
{}
NONE
vuejs
core
1,212,249,027
6,449
deathlynocturnal
Closed because I am blind and saw the `timeout` option, (hard to see in a wall of text...). Keeping open though as the error component portion would be super useful.
2022-08-11T16:57:14
2022-08-11T16:57:14
{}
NONE
vuejs
core
1,213,853,862
6,466
alamhubb
html cant contains newlines
2022-08-13T06:49:45
2022-08-13T06:49:45
{}
NONE
vuejs
core
1,207,394,346
6,418
paul-thebaud
Thanks @LinusBorg, I asked to the Vuetify team.
2022-08-07T12:11:15
2022-08-07T12:11:15
{}
NONE
vuejs
core
1,210,331,629
4,687
OnArrow
很坑,找到了半天才找到这个帖子。我怎么都不会怀疑到我的注释上面,没想到就是注释惹的祸
2022-08-10T08:23:47
2022-08-10T08:23:47
{ "+1": 1 }
NONE
vuejs
core
1,212,255,536
1,347
deathlynocturnal
Hello @yyx990803, is there an update here? I can see that the `timeout` attribute added does not work for some reason (tried with `:timeout="5000"` and `timeout="5000"` and that error element would be awesome.
2022-08-11T17:03:33
2022-08-11T17:03:33
{}
NONE
vuejs
core
1,214,565,716
6,392
He110te4m
> I'm thinking about another form of API. Here is an very prototype example: > > ```ts > import { isStringLiteral } from '@babel/types' > import type { Node } from '@babel/types' > import type { ComponentObjectPropsOptions, EmitsOptions } from 'vue' > > declare function defineMacro( > name: string, > fn:...
2022-08-15T03:10:27
2022-08-15T03:10:27
{ "heart": 1 }
NONE
vuejs
core
1,207,418,579
6,420
pikax
> For `toRefs()`, this is a bit trickier and I'd need our TS experts like @pikax to chime in. it seems that the types of `toRefs()` return `Ref<Type | undefined> | undefined` for a possibly undefined props, which is not accurate in this scenario - the prop object will always have this key (its value just may be undefin...
2022-08-07T14:15:24
2022-08-07T14:15:24
{}
MEMBER
vuejs
core
1,207,553,897
5,970
paul-xia
The latest version still has this problem
2022-08-08T01:34:48
2022-08-08T01:34:48
{}
NONE
vuejs
core
1,209,455,754
6,433
posva
This is intended behavior because by default the emits get inherited by the child. You should either remove the `@fun` in App.vue or add `inheritAttrs: false` to HelloWorld.vue [SFC Playground](https://sfc.vuejs.org/#eNq1VEFv0zAU/isPC2mt1CT3EKpVXOBcCQ6YQ5a4bYZjW7ZTmKYekDgUIVFx5QfQIzvtwPpzWthtf4Fnp2u6URW0aZfEfnnve/4+...
2022-08-09T14:28:04
2022-08-09T14:28:04
{}
MEMBER
vuejs
core
1,209,457,453
6,434
posva
Hi, thanks for your interest but Github issues are for bug reports and feature requests only. You can ask questions on the [forum](http://forum.vuejs.org/), the [Discord server](https://vue-land.js.org/) or [StackOverflow](http://stackoverflow.com/tags/vue.js). --- You likely need to move the alert to an `onMount...
2022-08-09T14:29:26
2022-08-09T14:29:26
{}
MEMBER
vuejs
core
1,214,093,772
6,462
LinusBorg
the build process does not process CSS imported from a CDN at runtime, it can only process CSS that's available locally during build.
2022-08-13T09:32:33
2022-08-13T09:32:33
{}
MEMBER
vuejs
core
1,216,456,728
6,478
a145789
> 有什么办法能让组件中的proxy对象的属性依赖 ` getName(state){ return (index: number)=>{ let temp:string[]=[] state.name[index].forEach((item)=>{ temp.push(item.name) }) return temp } }` 这样的getter,并且当store中的state变化时,proxy对象属性也更新吗? 使用 `watch` 或者 `watchEffect` 监听 `index` 和 `store` 中的数据手动赋值nameList。
2022-08-16T10:30:49
2022-08-16T10:30:49
{}
NONE
vuejs
core
1,207,911,713
6,222
like0413
same error
2022-08-08T09:55:12
2022-08-08T09:55:12
{}
NONE
vuejs
core
1,210,193,121
6,438
Justineo
See https://vuejs.org/api/custom-renderer.html.
2022-08-10T05:52:46
2022-08-10T05:52:46
{}
MEMBER
vuejs
core
1,211,594,500
6,435
max5432112345
@yyx990803 v-html the same story.
2022-08-11T06:25:02
2022-08-11T06:29:29
{}
NONE
vuejs
core
1,212,898,388
1,033
zoy-l
guys ,add at the head of the file ```js /* @jsxImportSource @vue/runtime-dom */ ``` or ```json5 tsconfig.json { ... "types": ["vue"], } ``` I test it works
2022-08-12T09:11:11
2022-08-12T09:11:11
{ "+1": 7, "hooray": 3 }
NONE
vuejs
core
1,213,082,970
1,033
elevatebart
Thank you @zoy-l i did not know about this "trick". Will try it out. I ended up segregating the two code-bases using tsconfig reference.
2022-08-12T12:56:53
2022-08-12T12:56:53
{}
CONTRIBUTOR
vuejs
core
1,214,083,352
6,465
joisun
1. Create a component by click the "+" plus button. ![image](https://user-images.githubusercontent.com/44388103/184477657-539ee71e-b665-4959-a880-04635a375e8b.png) 2. Import the component you created as in same folder path (current folder `./ `). ![image](https://user-images.githubusercontent.com/44388103/1844...
2022-08-13T09:25:16
2022-08-13T09:25:16
{}
NONE
vuejs
core
1,215,021,349
6,478
edison1105
如果 sfc playground 不好复现,建议上传一个最小可复现的仓库,有助于调查问题。
2022-08-15T13:34:34
2022-08-15T13:34:34
{}
MEMBER
vuejs
core
1,207,380,448
6,419
LinusBorg
If you cant repeoduce the problem, we cant either. Feel free to share a github repo with a minima reproduction if the playground doesn't work for you.
2022-08-07T10:49:43
2022-08-07T10:50:46
{}
MEMBER
vuejs
core
1,207,424,331
6,420
LinusBorg
> This is only valid for `props`, but `toRefs` is used in on the user land, I believe the current `toRefs` definition is accurate for the type coming from `defineProps`. True, forgot to mention it, but was aware > I think we can update the return type from `props` to remove the optional property, props can be con...
2022-08-07T14:46:58
2022-08-07T14:46:58
{}
MEMBER
vuejs
core
1,207,456,343
6,421
Justineo
Maybe related: https://github.com/vuejs/core/pull/6244
2022-08-07T17:56:03
2022-08-07T17:56:03
{}
MEMBER
vuejs
core
1,207,426,659
6,420
pikax
https://github.com/vuejs/core/pull/6421 will fix that error.
2022-08-07T15:01:23
2022-08-07T20:25:50
{}
MEMBER
vuejs
core
1,207,561,916
6,392
Blackman99
It's more implementable and reasonable. :+1:
2022-08-08T01:50:18
2022-08-08T01:50:18
{ "heart": 1 }
NONE
vuejs
core
1,208,863,737
6,222
sunset-L
same error
2022-08-09T03:15:48
2022-08-09T03:15:48
{}
NONE
vuejs
core
1,210,446,712
6,436
LinusBorg
Please provide a reproduction
2022-08-10T10:01:02
2022-08-10T10:01:02
{}
MEMBER
vuejs
core
1,212,812,867
6,453
edison1105
works fine in [sfc](https://sfc.vuejs.org/#eNp9Ustu2zAQ/JUFe4gDWGLR3lw5aBGgP9CgJ14YeWUzlUiCu1QTGP73rkg7cBMgN+7szOyLR/UjxnbOqDaqoz65yEDIOd4ZrzU8HBwBsU2MCRinOFpGECyT83v4nRG+wv86+PXznor4/oD9HwiZ4cAcaaO11HmiNqS9ttFpGvqmSpsibQ88jZ+uEePdFENiOELCYQ0en/nBiekJhhQmuBHDm2/G98ETgx3djLBdqCtOGW8lY/yQfc8ueIHHYHerWzgaD5XcznaUEbYw2JFQ6...
2022-08-12T07:28:22
2022-08-15T00:54:57
{}
MEMBER
vuejs
core
1,214,704,337
6,448
Shinigami92
> #2633 - keys can basically be `{}` I saw that issue, but hoped that my can be merged earlier on the road to that
2022-08-15T07:27:55
2022-08-15T07:27:55
{}
CONTRIBUTOR
vuejs
core
1,207,387,179
6,417
Waujito
![изображение](https://user-images.githubusercontent.com/53368344/183288261-369f86af-670a-43a9-b45f-c969ff79f12e.png) ![изображение](https://user-images.githubusercontent.com/53368344/183288352-8c71f346-f3ff-4088-acc8-66d70bc43d3f.png) ![изображение](https://user-images.githubusercontent.com/53368344/183288366-876a31...
2022-08-07T11:29:03
2022-08-07T11:30:01
{}
NONE
vuejs
core
1,207,410,771
6,420
LinusBorg
`toRef()` works as expected. The prop is possibly undefined, so the generated ref possibly contains and `undefined` value: `Ref<string | undefined>`. The propblem is only with `toRefs()` For `toRefs()`, this is a bit trickier and I'd need our TS experts like @pikax to chime in. it seems that the types of `toRefs()`...
2022-08-07T13:40:04
2022-08-07T13:40:04
{}
MEMBER
vuejs
core
1,214,265,433
6,468
JerryWu1234
> your repo works fine no the vercel deployment and also when copied to the SFC playground. The screenshots shows an error from a component that can't be found in the provided reproduction. (HeaderTool.vue) > > Can't reproduce the problem. I found this problem that not happen in production. I think it seems dif...
2022-08-14T01:58:25
2022-08-14T01:58:25
{}
NONE
vuejs
core
1,216,068,600
6,453
PYPARA
@edison1105 Thank you. https://cn.vuejs.org/guide/extras/rendering-mechanism.html#static-hoisting https://github.com/vuejs/core/discussions/6452
2022-08-16T02:20:30
2022-08-16T02:20:30
{}
NONE
vuejs
core
1,216,202,328
6,222
wy-service
我也是同样的问题,ctrl+s保存就报错,
2022-08-16T06:30:35
2022-08-16T06:30:35
{}
NONE
vuejs
core
1,207,379,304
5,657
chenhaihong
@HarisSpahija it dosn't work in my projects. 我给了我项目里的所有点式操作加上了可选操作符,然后解决了这个问题。 跟 @JimSuen 一样的解决方式,就像下面这样子, ```html <template #roles="scope"> <template v-if="scope.row.roles?.length"> <el-tag v-for="(item, index) in scope.row.roles" :key="item" size="small"> {{ item }} </el-tag> </templat...
2022-08-07T10:42:34
2022-08-07T10:42:34
{ "+1": 8 }
NONE
vuejs
core
1,207,424,978
6,420
Waujito
> > But, I think, the main topic of this issue is that it is impossible to separate Ref from Ref > > If you have an optional prop (= it can be `undefined`), then a ref created from that optional prop will possibly contain `undefined`. That's not a bug, and Vue can't solve that for you - you need to do that. > >...
2022-08-07T14:51:09
2022-08-07T20:25:30
{}
NONE
vuejs
core
1,207,426,502
6,420
Waujito
> > Did you check the reproduction? > > Your reproduction code is invalid, you are assigning `ref<string>` to a `string`. > > The only valid point is the `Ref<string | undefined> | undefined` which is a bug. Oh, yes, sorry. But i fixed it and anyways this returns an error: ![изображение](https://user-images....
2022-08-07T15:00:30
2022-08-07T20:25:43
{}
NONE
vuejs
core
1,207,532,752
6,038
xikeqian
> maybe you can do it use `KeepAlive`. > > If use router controll it, record route: > > ```js > // record tabs > const pages = reactive([]); > > // when route changed, record it > router.afterEach((to) => { > const key = getKeyFromRoute(to); > if (pages.find((tab) => tab.key === key)) { > return;...
2022-08-08T00:58:21
2022-08-08T00:58:21
{}
NONE
vuejs
core
1,207,853,900
5,982
KID-joker
I tried this pr and it didn't cause errors anymore. But I have a question. When I updated the `onActivated/onDeactivated` and trigger the `reload`, `onActivated/onDeactivated` isn't up to date.
2022-08-08T08:58:18
2022-08-08T09:11:52
{}
NONE
vuejs
core
1,211,692,500
6,448
Shinigami92
I'm unsure if the failing e2e is related to my changes 🤔 Could we try to rerun it?
2022-08-11T08:28:29
2022-08-11T08:28:29
{}
CONTRIBUTOR
vuejs
core
1,213,834,990
6,466
alamhubb
![image](https://user-images.githubusercontent.com/14007972/184472016-6adde698-e5e2-42c6-8391-2e382159f514.png)
2022-08-13T06:36:41
2022-08-13T06:36:41
{}
NONE
vuejs
core
1,214,093,008
6,460
LinusBorg
Event though you externalize vue in the lib folders, it's still existing in those folders' `node_modules`. When you include these projects into the apps via `file://...`, the `'vue'` imports in your lib files will import vue from *their* `node_modules` folder, while your app's code will import vue from *their* `node...
2022-08-13T09:31:58
2022-08-13T09:31:58
{}
MEMBER
vuejs
core
1,207,376,304
6,392
sxzz
I'm thinking about another form of API. Here is an very prototype example: ```ts import { isStringLiteral } from '@babel/types' import type { Node } from '@babel/types' import type { ComponentObjectPropsOptions, EmitsOptions } from 'vue' declare function defineMacro( name: string, fn: (ctx: { compon...
2022-08-07T10:23:49
2022-08-07T10:47:14
{ "+1": 3 }
MEMBER
vuejs
core
1,207,380,763
6,418
LinusBorg
If that only happens wkth vuetify components, please open an issue with them first.
2022-08-07T10:51:53
2022-08-07T10:51:53
{}
MEMBER
vuejs
core
1,207,390,310
6,417
Waujito
toRef also have this problem. So ok, I will open a new issue
2022-08-07T11:48:03
2022-08-07T11:48:03
{}
NONE