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,112,990,706 | 5,831 | netlify[bot] | ### <span aria-hidden="true">✅</span> Deploy Preview for *vue-next-template-explorer* ready!
| Name | Link |
|---------------------------------|------------------------|
|<span aria-hidden="true">🔨</span> Latest commit | 66352d552607eba83b89612876e87096ec0d4ed2 |
|<span aria-hidden="true">🔍</span> Latest deploy lo... | 2022-04-29T07:57:46 | 2022-04-29T14:12:52 | {} | NONE |
vuejs | core | 1,114,094,379 | 5,834 | edison1105 | your repro can not reproduce your problem. | 2022-05-01T01:20:33 | 2022-05-01T01:20:33 | {} | MEMBER |
vuejs | core | 1,107,451,537 | 5,789 | netlify[bot] | ### <span aria-hidden="true">✅</span> Deploy Preview for *vuejs-coverage* ready!
| Name | Link |
|---------------------------------|------------------------|
|<span aria-hidden="true">🔨</span> Latest commit | 234fe86e55ec7fa885a48eed897e76dd9a8f7bae |
|<span aria-hidden="true">🔍</span> Latest deploy log | https://... | 2022-04-23T10:51:53 | 2022-05-01T02:21:18 | {} | NONE |
vuejs | core | 1,114,106,770 | 5,789 | hchlq | ## origin regExp
```js
const fnExpRE = /^\s*([\w$_]+|(async\s*)?\([^)]*?\))\s*=>|^\s*(async\s+)?function(?:\s+[\w$]+)?\s*\(/
```
<img width="1312" alt="image" src="https://user-images.githubusercontent.com/60802048/166129473-dfa4e02b-016a-498f-9ac9-387074bffa34.png">
## improve regExp
```js
const fnExpRE = /^\... | 2022-05-01T02:22:14 | 2022-05-01T02:30:02 | {} | CONTRIBUTOR |
vuejs | core | 1,114,560,006 | 5,845 | jaskle | > 看看能不能将现在的仓库里复现的错误信息显示出来?
我使用@vue/cli@5.0.4" 创建全新的代码项目
我在App.vue添加了代码
https://github.com/jaskle/vue3_ts_err.git
我非常喜欢用setup语法糖,希望能帮我找到问题
| 2022-05-02T07:09:22 | 2022-05-02T07:10:28 | {} | NONE |
vuejs | core | 1,114,711,508 | 5,848 | LinusBorg | That's expected. In order to efficiently update v-for's, we can't guarantee order here.
If you need DOM order, you could order it yourself with [compareDocumentPosition](https://developer.mozilla.org/en-US/docs/Web/API/Node/compareDocumentPosition) | 2022-05-02T10:37:42 | 2022-05-02T10:37:42 | {} | MEMBER |
vuejs | core | 1,116,857,272 | 5,830 | edison1105 | > I noticed this bug too, is the PR submitted by @edison1105 ready to be merged? I see that all checks passed, is it waiting for a specific approval?
waiting for Evan's review. | 2022-05-04T01:43:45 | 2022-05-04T01:43:45 | {
"rocket": 1
} | MEMBER |
vuejs | core | 1,116,968,012 | 5,857 | netlify[bot] | ### <span aria-hidden="true">✅</span> Deploy Preview for *vue-sfc-playground* ready!
| Name | Link |
|---------------------------------|------------------------|
|<span aria-hidden="true">🔨</span> Latest commit | b0e30c23174ade2d2c3c52bc755e387b999796aa |
|<span aria-hidden="true">🔍</span> Latest deploy log | http... | 2022-05-04T06:23:50 | 2022-05-04T06:26:10 | {} | NONE |
vuejs | core | 1,117,442,020 | 5,847 | extrem7 | @StephenChips I think there are two different moments: `Ref<boolean | undefined>` and `Ref<> | undefined`. Seems like the second has no sense (because keys are always present in props). The first case may be consistent behavior. | 2022-05-04T15:04:37 | 2022-05-04T15:04:37 | {} | NONE |
vuejs | core | 1,114,419,562 | 5,845 | jaskle | 我的问题在
Vue SFC Playground
运行竟然是正常的,我不清楚它和我的cli脚手架项目有什么不同
| 2022-05-02T01:40:55 | 2022-05-02T01:40:55 | {} | NONE |
vuejs | core | 1,114,539,981 | 5,837 | godingchen | > Your reproduction is not minimal, please read and follow https://new-issue.vuejs.org/?repo=vuejs/vue-next#why-repro when reporting a bug. Most bugs should be reproducible with the [SFC Playground](https://sfc.vuejs.org).
无法通过此方式,上面附上了仓库链接 | 2022-05-02T06:30:25 | 2022-05-02T06:30:25 | {} | NONE |
vuejs | core | 1,114,583,371 | 5,841 | LinusBorg | The watchEffect that uses the computed property doesn't update because the value of the computed property is a non-reactive, plain instance of `new MyCollection`. So any changes to do on that object are non-reactive.
So the only reactive dependency is the value of the computed itself, and that value doesn't change -... | 2022-05-02T07:42:22 | 2022-05-02T07:44:31 | {
"heart": 1
} | MEMBER |
vuejs | core | 1,114,656,273 | 5,845 | jaskle | 我特意关掉了Use Babel alongside TypeScript,问题还是存在
但是我测试了一下
#5846
确实修复了这个问题,期待正式发布.
五一快乐
| 2022-05-02T09:20:37 | 2022-05-02T09:20:37 | {} | NONE |
vuejs | core | 1,113,608,632 | 5,764 | liulinboyi | >
> Thank you!
>
> This is a good option, but I really like using the `<template>` syntax as it works with `<script setup lang="tsx">` very nicely. Only thing which would need to be adressed is to strip away the TS syntax like it is done with `<script setup lang="ts">` 👍
You can take a cue from how [naiv... | 2022-04-29T18:38:17 | 2022-04-29T18:38:17 | {
"+1": 1
} | MEMBER |
vuejs | core | 1,114,252,623 | 5,838 | zz541843 | > 可以试一试VSCcode 插件[Vue Language Features (Volar)](https://marketplace.visualstudio.com/items?itemName=johnsoncodehk.volar)
>
> ### SFC在线例子
> ```js
> <script lang="ts">
> import MyModal from './MyModal.vue'
> import { ref,nextTick } from 'vue'
> import type { InstanceType } from 'vue'
>
> export default {
> ... | 2022-05-01T14:26:12 | 2022-05-01T14:26:12 | {} | NONE |
vuejs | core | 1,114,523,014 | 5,837 | godingchen | >


](https://marketplace.visualstudio.com/items?itemName=johnsoncodehk.volar)
> > > > > ### SFC在线例子
> > > > > ```js
> > > > > <script lang="ts">
> > > > > import MyModal from './MyModal.vue'
> > > > > import { ref,nextTick } from 'vue'
> > > > > import type { In... | 2022-05-01T15:59:55 | 2022-05-01T15:59:55 | {} | NONE |
vuejs | core | 1,114,635,084 | 5,846 | netlify[bot] | ### <span aria-hidden="true">✅</span> Deploy Preview for *vue-sfc-playground* ready!
| Name | Link |
|---------------------------------|------------------------|
|<span aria-hidden="true">🔨</span> Latest commit | c79238ef7e0245c437550e0ec0c8669a972ff977 |
|<span aria-hidden="true">🔍</span> Latest deploy log | http... | 2022-05-02T08:54:10 | 2022-05-02T08:56:36 | {} | NONE |
vuejs | core | 1,115,960,089 | 5,401 | nileshtrivedi | The Vue docs still say that "Vue scores a perfect 100% in the Custom Elements Everywhere tests" but [the tests actually show 91% score](https://custom-elements-everywhere.com/):
<img width="710" alt="image" src="https://user-images.githubusercontent.com/19304/166440020-609a5ab1-f4d2-40e3-9b1c-03e1521cd8bb.png">
| 2022-05-03T10:43:14 | 2022-05-03T10:43:14 | {
"confused": 13
} | NONE |
vuejs | core | 1,113,325,348 | 5,022 | LinusBorg | I'd say so, yes.
This fix was necessary to fix the problem explained in the description, and I believe conceptually, it makes sense that custom directives get access to only he same interface as components would get with a template `ref`.
Looking at the linked context you provided:
> This really seems like a ... | 2022-04-29T13:41:11 | 2022-04-29T13:43:04 | {
"+1": 1
} | MEMBER |
vuejs | core | 1,115,077,789 | 5,842 | hchlq | You are missing the modification to use V-model on the component | 2022-05-02T16:11:20 | 2022-05-02T16:11:20 | {
"+1": 1
} | CONTRIBUTOR |
vuejs | core | 1,116,158,322 | 5,022 | Tofandel | @LinusBorg
I think we should do both A and B
A: Because it's a regression (in a minor nonetheless) and should be fixed
B: Because it's much better conceptually and there is no reason not to add this possibility so that we can avoid the use of globals | 2022-05-03T14:21:12 | 2022-05-03T14:22:18 | {} | CONTRIBUTOR |
vuejs | core | 1,113,171,843 | 5,764 | DrJume | Thank you!
This is a good option, but I really like using the `<template>` syntax as it works with `<script setup lang="tsx">` very nicely. Only thing which would need to be adressed is to strip away the TS syntax like it is done with `<script setup lang="ts">` 👍 | 2022-04-29T10:55:51 | 2022-04-29T10:55:51 | {
"+1": 2
} | CONTRIBUTOR |
vuejs | core | 1,113,605,714 | 5,834 | liulinboyi | ### Please more Info.
### Your example has not print vue's error in console. | 2022-04-29T18:34:07 | 2022-04-29T18:34:07 | {} | MEMBER |
vuejs | core | 1,114,252,893 | 5,842 | netlify[bot] | ### <span aria-hidden="true">✅</span> Deploy Preview for *vuejs-coverage* ready!
| Name | Link |
|---------------------------------|------------------------|
|<span aria-hidden="true">🔨</span> Latest commit | b002cee2f35e33da45f233a8aa251734df99793a |
|<span aria-hidden="true">🔍</span> Latest deploy log | https://... | 2022-05-01T14:27:27 | 2022-05-02T16:53:53 | {} | NONE |
vuejs | core | 1,116,137,411 | 5,847 | StephenChips | Interesting, I tend to think this is a bug, since other primitive type's default value is `undefined`. | 2022-05-03T14:02:35 | 2022-05-03T14:02:35 | {} | CONTRIBUTOR |
vuejs | core | 1,117,062,441 | 5,847 | StephenChips | @liulinboyi
If is a not a bug, why we need this behaviour, what is the motivation of this design? It is kind of odd and inconsistent to other types. IMO, absent value should always be `undefined`.
I noticed that only boolean props will do the casting, other types will just remain `undefined` (e.g. number, string... | 2022-05-04T08:40:53 | 2022-05-04T08:44:21 | {
"+1": 2
} | CONTRIBUTOR |
vuejs | core | 1,113,258,461 | 4,955 | netlify[bot] | ### <span aria-hidden="true">✅</span> Deploy Preview for *vuejs-coverage* ready!
| Name | Link |
|---------------------------------|------------------------|
|<span aria-hidden="true">🔨</span> Latest commit | f9fc790952e37b027d45c954231d1675720f9ded |
|<span aria-hidden="true">🔍</span> Latest deploy log | https://... | 2022-04-29T12:31:20 | 2022-04-29T12:37:00 | {} | NONE |
vuejs | core | 1,113,302,568 | 5,022 | Liwoj | Question: This fix does seem to also block the directive from using properties defined on `globalProperties`
Is this intentional ?
[context](https://github.com/quasarframework/quasar/issues/13154#issuecomment-1113273509)
@LinusBorg | 2022-04-29T13:20:02 | 2022-04-29T13:23:19 | {
"+1": 1
} | NONE |
vuejs | core | 1,113,891,523 | 5,835 | cuixiaorui | @edison1105 but I think this is an API defect
because '@vue/compiler-core' is released as A separate package
it exports "NodeTypes" API, but outside can not be used.
What do you think?
or about API defects we can where discuss?
| 2022-04-30T02:06:09 | 2022-04-30T02:06:09 | {} | CONTRIBUTOR |
vuejs | core | 1,114,268,276 | 5,838 | zz541843 | > > > 可以试一试VSCcode 插件[Vue Language Features (Volar)](https://marketplace.visualstudio.com/items?itemName=johnsoncodehk.volar)
> > > ### SFC在线例子
> > > ```js
> > > <script lang="ts">
> > > import MyModal from './MyModal.vue'
> > > import { ref,nextTick } from 'vue'
> > > import type { InstanceType } from 'vue'
> >... | 2022-05-01T15:41:47 | 2022-05-01T15:41:47 | {} | NONE |
vuejs | core | 1,114,495,973 | 5,845 | edison1105 | 看错误信息像是没有将ts的语法剥离掉。
能再提供一个最小复现的仓库吗? | 2022-05-02T04:52:58 | 2022-05-02T04:52:58 | {} | MEMBER |
vuejs | core | 1,114,972,093 | 5,363 | jeffnorris1 | Any update on this? This memory leak is hurting our application's performance. | 2022-05-02T14:39:10 | 2022-05-02T14:39:10 | {} | NONE |
vuejs | core | 1,115,022,894 | 5,850 | netlify[bot] | ### <span aria-hidden="true">✅</span> Deploy Preview for *vue-sfc-playground* ready!
| Name | Link |
|---------------------------------|------------------------|
|<span aria-hidden="true">🔨</span> Latest commit | 7f9348f1550009a7da9547bd66af1d7fe749fa9c |
|<span aria-hidden="true">🔍</span> Latest deploy log | http... | 2022-05-02T15:16:08 | 2022-05-02T15:18:58 | {} | NONE |
vuejs | core | 1,115,072,648 | 5,850 | hchlq | > There is already a PR fixing #5839, and we should discuss something in that PR rather than submitting a new one.
Get it. | 2022-05-02T16:06:30 | 2022-05-02T16:06:30 | {} | CONTRIBUTOR |
vuejs | core | 1,115,942,694 | 5,852 | netlify[bot] | ### <span aria-hidden="true">✅</span> Deploy Preview for *vue-next-template-explorer* ready!
| Name | Link |
|---------------------------------|------------------------|
|<span aria-hidden="true">🔨</span> Latest commit | ee7df25fbacf43241a2cf944e7a71e48d8a6eb3d |
|<span aria-hidden="true">🔍</span> Latest deploy lo... | 2022-05-03T10:18:24 | 2022-05-03T10:19:21 | {} | NONE |
vuejs | core | 1,116,880,533 | 5,833 | yuwu9145 | I believe this should be a bug though it's an edge case | 2022-05-04T02:53:37 | 2022-05-04T02:53:54 | {} | CONTRIBUTOR |
vuejs | core | 1,094,980,336 | 1,228 | Hextar | Also encountering that rn while running `npm run build`.
only way to temporally fix it is to disabled `isolatedModules` from tsconfig.json
NB: that's ofc not an ideal solution | 2022-04-11T12:19:19 | 2022-04-12T10:18:50 | {} | NONE |
vuejs | core | 1,096,534,206 | 3,399 | pikax | > What about non-global directives?
Local directives will also be available for type extract.
> I'm creating a custom elements library in Vue, and I want to do this:
>
> ```tsx
> import { defineCustomElement } from "vue";
> import ClickOutside from "click-outside-vue3";
>
> export default defineCustomElem... | 2022-04-12T10:27:25 | 2022-04-12T10:27:25 | {
"+1": 3
} | MEMBER |
vuejs | core | 1,096,797,597 | 5,703 | Exotelis | Thank you for the feedback @LinusBorg and @pikax - I was also not quite happy to use `ComponentPropsOptions` but it was the closest solution I found.
the `buildProps` function looks great, and I guess the fowlling should also work then:
```javascript
export function useTypoCss(props: ExtractPropTypes<typeof Typo... | 2022-04-12T14:23:26 | 2022-04-12T14:26:50 | {} | NONE |
vuejs | core | 1,097,790,165 | 5,550 | yyx990803 | Thanks for the PR, but #5552 provides a more comprehensive fix. | 2022-04-13T09:25:30 | 2022-04-13T09:25:30 | {} | MEMBER |
vuejs | core | 1,091,869,465 | 5,682 | netlify[bot] | ### <span aria-hidden="true">✅</span> Deploy Preview for *vuejs-coverage* ready!
| Name | Link |
|---------------------------------|------------------------|
|<span aria-hidden="true">🔨</span> Latest commit | c8cc62cba298558b222cdc44a2f43b0ab171ab75 |
|<span aria-hidden="true">🔍</span> Latest deploy log | https://... | 2022-04-07T15:18:40 | 2022-04-13T09:40:52 | {} | NONE |
vuejs | core | 1,097,868,976 | 5,348 | yyx990803 | We should only treat `null` and `undefined` as removal (this is consistent with Vue 2 where `false` is rendered as-is) so I removed the check for `false`. | 2022-04-13T10:17:29 | 2022-04-13T10:17:29 | {} | MEMBER |
vuejs | core | 1,025,660,545 | 5,348 | netlify[bot] | ### <span aria-hidden="true">✅</span> Deploy Preview for *vuejs-coverage* ready!
| Name | Link |
|---------------------------------|------------------------|
|<span aria-hidden="true">🔨</span> Latest commit | 59a6eb5661736135d7a3eb14861697dcac6fbb51 |
|<span aria-hidden="true">🔍</span> Latest deploy log | https://... | 2022-01-31T11:54:34 | 2022-04-13T10:22:11 | {} | NONE |
vuejs | core | 1,097,881,362 | 5,708 | netlify[bot] | ### <span aria-hidden="true">✅</span> Deploy Preview for *vue-next-template-explorer* ready!
| Name | Link |
|---------------------------------|------------------------|
|<span aria-hidden="true">🔨</span> Latest commit | 72db7921562829ae3463f2bdc1853efd6f4aa9ae |
|<span aria-hidden="true">🔍</span> Latest deploy lo... | 2022-04-13T10:27:05 | 2022-04-13T10:27:51 | {} | NONE |
vuejs | core | 1,098,757,192 | 5,666 | LinusBorg | @pikax can you take a look at this one? Thanks! | 2022-04-14T06:31:14 | 2022-04-14T06:31:14 | {} | MEMBER |
vuejs | core | 1,093,839,265 | 994 | Stnaire | Sorry but I really think this topic should be reopened.
The current behavior is not only counterintuitive, it is also blocking in certain scenarios.
The very nature of what being "mounted" or "unmounted" means is not respected here.
Correct me if I'm wrong but a "mounted" component is a component present in the ... | 2022-04-09T09:43:04 | 2022-04-09T09:43:04 | {
"+1": 3
} | NONE |
vuejs | core | 1,094,802,688 | 4,294 | Codebreaker101 | @aislanmaia for example
``` ts
import { defineComponent, PropType, h } from 'vue';
import { ExtractPropTypes, ExtractDefaultPropTypes } from 'vue';
type Omit<T, K> = Pick<T, Exclude<keyof T, K>>;
type PartialBy<T, K> = Omit<T, K> & Partial<T>;
type Writeable<T> = { -readonly [P in keyof T]: T[P] };
expor... | 2022-04-11T09:26:59 | 2022-04-11T09:26:59 | {
"eyes": 3
} | NONE |
vuejs | core | 1,094,950,801 | 5,696 | LinusBorg | > I strongly believe that documentation can be improved,
Agreed. :)
> Another major confusion: the "Typing Component Emits" section here: https://vuejs.org/guide/typescript/composition-api.html#typing-component-emits is completely different from the section with exactly the same name here: https://vuejs.org/guide... | 2022-04-11T11:44:53 | 2022-04-11T11:44:53 | {
"+1": 1
} | MEMBER |
vuejs | core | 1,095,472,935 | 5,698 | posva | The warning could be better but you are not supposed to modify a prop so the behavior is expected | 2022-04-11T19:28:06 | 2022-04-11T19:28:06 | {} | MEMBER |
vuejs | core | 1,059,017,189 | 5,517 | netlify[bot] | ### <span aria-hidden="true">✅</span> Deploy Preview for *vue-next-template-explorer* ready!
| Name | Link |
|---------------------------------|------------------------|
|<span aria-hidden="true">🔨</span> Latest commit | 2b896fe21db19d8466272d2dcb0eacfd116bd3ce |
|<span aria-hidden="true">🔍</span> Latest deploy lo... | 2022-03-04T10:02:49 | 2022-04-12T06:38:42 | {} | NONE |
vuejs | core | 1,059,017,239 | 5,517 | netlify[bot] | ### <span aria-hidden="true">✅</span> Deploy Preview for *vue-sfc-playground* ready!
| Name | Link |
|---------------------------------|------------------------|
|<span aria-hidden="true">🔨</span> Latest commit | 2b896fe21db19d8466272d2dcb0eacfd116bd3ce |
|<span aria-hidden="true">🔍</span> Latest deploy log | http... | 2022-03-04T10:02:53 | 2022-04-12T06:41:24 | {} | NONE |
vuejs | core | 1,096,185,712 | 1,679 | str1ve21 | Awesome, thank you so much, works good with vue 3 cli
| 2022-04-12T06:49:28 | 2022-04-12T06:49:28 | {
"+1": 1
} | NONE |
vuejs | core | 1,096,211,138 | 5,702 | LinusBorg | [Cannot reproduce (Playground)](https://sfc.vuejs.org/#eyJBcHAudnVlIjoiPHRlbXBsYXRlPlxuICA8ZGl2IGNsYXNzPVwibWVudS1pdGVtXCI+XG4gICAgPGRpdiBjbGFzcz1cIm1lbnUtaGVhZFwiIEBjbGljaz1cInRvZ2dsZVN1Ym1lbnVcIj5cbiAgICAgIDxpIGNsYXNzPVwiZmEtc29saWQgZmEtYnVpbGRpbmcgbWVudS1pY29uXCI+PC9pPlxuICAgICAgJm5ic3A7XG4gICAgICA8ZGl2IGNsYXNzPVwia... | 2022-04-12T07:06:21 | 2022-04-12T07:06:21 | {} | MEMBER |
vuejs | core | 1,096,747,445 | 5,703 | pikax | Thanks @LinusBorg for the summoning 🧙♂️
Had a quick look on the stackblitz, props should be type safe if declared as props:
```ts
defineComponent({
props: {
align: {
type: String as PropType<TypoAlignType>,
required: true,
}
},
setup(props) {
... | 2022-04-12T13:43:13 | 2022-04-12T13:43:13 | {} | MEMBER |
vuejs | core | 1,098,289,724 | 5,713 | netlify[bot] | ### <span aria-hidden="true">✅</span> Deploy Preview for *vuejs-coverage* ready!
| Name | Link |
|---------------------------------|------------------------|
|<span aria-hidden="true">🔨</span> Latest commit | 57f6b7bd85269e542feab7f75bf341cb4ebfd96f |
|<span aria-hidden="true">🔍</span> Latest deploy log | https://... | 2022-04-13T17:09:40 | 2022-04-13T17:15:57 | {} | NONE |
vuejs | core | 1,098,628,834 | 5,649 | yyx990803 | We'll need a bit more info to confirm that this is indeed a memory leak - `reactiveMap` is a WeakMap - which means an entry can be released if its key is no longer referenced anywhere.
Your `console.log()` may cause the console to iterate the WeakMap and thus prevent all keys to be released.
To show a memory leak... | 2022-04-14T01:44:24 | 2022-04-14T01:44:24 | {} | MEMBER |
vuejs | core | 1,094,185,641 | 4,092 | ccqgithub | > If the remaining utility is only related to generic components, I think it would be better discussed as part of the generic components proposal. So closing this one here.
@yyx990803 如果使用volar开发,现在项目中能有scopedSlots props的类型提示,但是貌似是结合模版解析提示的。
但是如果构建一个第三方组件库,`.vue`文件会编译成 js 文件,这时候会丢失slots的类型信息(因为现在的defineComponent... | 2022-04-10T05:46:55 | 2022-04-10T08:00:48 | {} | NONE |
vuejs | core | 1,096,470,807 | 5,703 | LinusBorg | When you remove the generic inputs for `defineComponent()` and instead let Typescript infer them as intended, it works for me:
<img width="540" alt="image" src="https://user-images.githubusercontent.com/1444526/162932847-f683e1ed-8dba-478d-8453-4f2207884532.png">
Is that what you are talking about? your descripti... | 2022-04-12T09:50:53 | 2022-04-12T09:52:41 | {} | MEMBER |
vuejs | core | 1,096,571,691 | 5,703 | LinusBorg | I have a hard time reproducing that. Downloaded the repro to run it locally, still this is what I see:
<img width="764" alt="image" src="https://user-images.githubusercontent.com/1444526/162944762-8544ffd2-c33a-4404-bcfa-5953b3b42b01.png">
What version of TS are you using in your real project? I used 4.6 included... | 2022-04-12T10:56:47 | 2022-04-12T11:03:31 | {} | MEMBER |
vuejs | core | 1,096,808,432 | 5,703 | pikax | > the `buildProps` function looks great and I guess this should also work then:
>
> ```js
> export function useTypoCss(props: ExtractPropTypes<typeof TypoProps>) {
> function getCssClasses() {
> TypoAlignConst.indexOf(props.align);
> }
>
> // ....
> }
> ```
I wouldn't do that for `use... | 2022-04-12T14:32:30 | 2022-04-12T14:32:30 | {} | MEMBER |
vuejs | core | 1,055,311,753 | 5,498 | netlify[bot] | ### <span aria-hidden="true">✅</span> Deploy Preview for *vue-sfc-playground* ready!
| Name | Link |
|---------------------------------|------------------------|
|<span aria-hidden="true">🔨</span> Latest commit | 0b9b7fa2fceb9b5e7ff20a2a001165800735eef7 |
|<span aria-hidden="true">🔍</span> Latest deploy log | http... | 2022-03-01T11:07:25 | 2022-04-13T10:26:58 | {} | NONE |
vuejs | core | 1,097,881,363 | 5,708 | netlify[bot] | ### <span aria-hidden="true">✅</span> Deploy Preview for *vuejs-coverage* ready!
| Name | Link |
|---------------------------------|------------------------|
|<span aria-hidden="true">🔨</span> Latest commit | 72db7921562829ae3463f2bdc1853efd6f4aa9ae |
|<span aria-hidden="true">🔍</span> Latest deploy log | https://... | 2022-04-13T10:27:05 | 2022-04-13T10:33:15 | {} | NONE |
vuejs | core | 1,098,620,395 | 5,546 | edison1105 | duplicate of https://github.com/vuejs/core/issues/5523 | 2022-04-14T01:23:53 | 2022-04-14T01:23:53 | {} | MEMBER |
vuejs | core | 1,096,466,123 | 5,184 | maxirozay | I had the same issue only in prod when I was modifying a computed property (which was updating a prop with v-model) and it seems I fixed it by changing some v-show to v-if... I have no clue as to why there was this issue or why I can fix i with v-for. | 2022-04-12T09:47:24 | 2022-04-12T09:47:24 | {} | NONE |
vuejs | core | 1,096,515,090 | 5,703 | Exotelis | Hi @LinusBorg
sorry I tought the use case was obvious. The intention is to be able to share prop definitions accross the application. For example, every typography component such as paragraph, headline, lists etc. could extend the `TypoPropsInterface` interface to gurantee that those properties exist. The predefine... | 2022-04-12T10:18:39 | 2022-04-12T10:29:05 | {} | NONE |
vuejs | core | 1,064,311,110 | 5,565 | netlify[bot] | ### <span aria-hidden="true">✅</span> Deploy Preview for *vue-sfc-playground* ready!
| Name | Link |
|---------------------------------|------------------------|
|<span aria-hidden="true">🔨</span> Latest commit | 48b1b1ecbecdd82546af0075741bf68e8add406b |
|<span aria-hidden="true">🔍</span> Latest deploy log | http... | 2022-03-10T17:23:46 | 2022-04-13T09:32:58 | {} | NONE |
vuejs | core | 1,098,173,217 | 5,712 | posva | BTW: You probably want to export `$$(num)` (the actual ref) | 2022-04-13T15:12:18 | 2022-04-13T15:12:18 | {} | MEMBER |
vuejs | core | 1,098,899,814 | 5,717 | netlify[bot] | ### <span aria-hidden="true">✅</span> Deploy Preview for *vue-next-template-explorer* ready!
| Name | Link |
|---------------------------------|------------------------|
|<span aria-hidden="true">🔨</span> Latest commit | 6966042b9c8dd45586991a744c23b09b003d85b1 |
|<span aria-hidden="true">🔍</span> Latest deploy lo... | 2022-04-14T09:09:14 | 2022-04-14T09:10:00 | {} | NONE |
vuejs | core | 1,097,842,843 | 5,680 | JianJroh | > ### Version
> 3.2.27 及以上
>
> ### Reproduction link
> [sfc.vuejs.org/](https://sfc.vuejs.org/#eyJBcHAudnVlIjoiPHNjcmlwdCBzZXR1cD5cbmltcG9ydCB7IHJlZiwgc2hhbGxvd1JlZiB9IGZyb20gJ3Z1ZSdcbmltcG9ydCBBQyBmcm9tIFwiLi9Db21wQS52dWVcIlxuIGltcG9ydCBCQyBmcm9tIFwiLi9Db21wQi52dWVcIlxuICAgaW1wb3J0IENDIGZyb20gXCIuL0NvbXBDLnZ1ZVwi... | 2022-04-13T09:57:59 | 2022-04-13T09:57:59 | {} | NONE |
vuejs | core | 1,098,289,703 | 5,713 | netlify[bot] | ### <span aria-hidden="true">✅</span> Deploy Preview for *vue-sfc-playground* ready!
| Name | Link |
|---------------------------------|------------------------|
|<span aria-hidden="true">🔨</span> Latest commit | 57f6b7bd85269e542feab7f75bf341cb4ebfd96f |
|<span aria-hidden="true">🔍</span> Latest deploy log | http... | 2022-04-13T17:09:38 | 2022-04-13T17:13:33 | {} | NONE |
vuejs | core | 1,098,406,835 | 5,715 | netlify[bot] | ### <span aria-hidden="true">✅</span> Deploy Preview for *vuejs-coverage* ready!
| Name | Link |
|---------------------------------|------------------------|
|<span aria-hidden="true">🔨</span> Latest commit | 5da093a72773d83056df3089dfe19472c1f6360a |
|<span aria-hidden="true">🔍</span> Latest deploy log | https://... | 2022-04-13T19:30:43 | 2022-04-13T19:36:36 | {} | NONE |
vuejs | core | 1,098,652,476 | 5,482 | yyx990803 | This is definitely not the right fix as some attributes (e.g. SVG ones) do use camelCase. I think the original issue is more about slot props unnecessarily being converted to camelCase when passed down. | 2022-04-14T02:38:27 | 2022-04-14T02:38:27 | {} | MEMBER |
vuejs | core | 1,098,673,618 | 5,477 | yyx990803 | The camel-casing of slot props was introduced for behavior consistency with Vue 2, and unfortunately cannot be changed due to its breaking nature.
A possible workaround is to avoid camel-casing props that start with `aria-*` or `data-*`. These are the main possible edge cases for the issue we have here, because abso... | 2022-04-14T03:29:53 | 2022-04-14T03:29:53 | {} | MEMBER |
vuejs | core | 1,094,127,316 | 4,385 | OskarLebuda | @yyx990803 do you have any workaround for this issue? Or maybe u dont see any problems with that? This was the core solution in V2. How should be move into v3 without the core functionality of SSR? | 2022-04-09T21:30:47 | 2022-04-09T21:30:47 | {
"+1": 1
} | NONE |
vuejs | core | 1,094,748,081 | 5,697 | web-L | I had the same problem | 2022-04-11T08:56:39 | 2022-04-11T08:56:39 | {} | NONE |
vuejs | core | 1,095,153,646 | 813 | occamz | Worked for me to declare the event with `emits`.
```js
export default {
name: "SomeComponent",
emits: ["click"],
...
}
```
| 2022-04-11T14:53:09 | 2022-04-11T14:53:09 | {
"+1": 4,
"heart": 3
} | NONE |
vuejs | core | 1,096,482,115 | 1,228 | sua-dawn | Just chiming in here, please fix this! Especially since this is now default for vite's vue-ts template: https://github.com/vitejs/vite/pull/7304 | 2022-04-12T09:58:51 | 2022-04-12T10:01:58 | {
"+1": 7
} | NONE |
vuejs | core | 1,096,316,776 | 3,399 | Maxim-Mazurok | What about non-global directives? I'm creating a custom elements library in Vue, and I want to do this:
```tsx
import { defineCustomElement } from "vue";
import ClickOutside from "click-outside-vue3";
export default defineCustomElement({
name: "Hello",
directives: {
clickOutside: ClickOutside.directive... | 2022-04-12T08:07:42 | 2022-04-12T11:50:40 | {} | NONE |
vuejs | core | 1,097,621,914 | 5,688 | yyx990803 | This intended - since the same CSS file may be imported by multiple different SFCs, `v-bind()` usage in the imported file will become semantically ambiguous - which SFC's state should it bind to? | 2022-04-13T06:49:22 | 2022-04-13T06:49:22 | {} | MEMBER |
vuejs | core | 1,097,835,993 | 5,688 | HusamElbashir | @yyx990803 & @posva that makes sense. I would argue though that the behavior is unexpected (POLA?) and thus warrants a warning/mention in the docs. | 2022-04-13T09:52:46 | 2022-04-13T09:52:46 | {
"+1": 2
} | CONTRIBUTOR |
vuejs | core | 1,098,032,378 | 5,711 | netlify[bot] | ### <span aria-hidden="true">✅</span> Deploy Preview for *vue-sfc-playground* ready!
| Name | Link |
|---------------------------------|------------------------|
|<span aria-hidden="true">🔨</span> Latest commit | 88baad6d431bff69deafdbe7c8e87ac07df54ae8 |
|<span aria-hidden="true">🔍</span> Latest deploy log | http... | 2022-04-13T13:11:01 | 2022-04-13T13:23:10 | {} | NONE |
vuejs | core | 1,093,196,944 | 5,691 | netlify[bot] | ### <span aria-hidden="true">✅</span> Deploy Preview for *vuejs-coverage* ready!
| Name | Link |
|---------------------------------|------------------------|
|<span aria-hidden="true">🔨</span> Latest commit | 5fb9660b81d99680c16ca7a43ece9e4c86769d6e |
|<span aria-hidden="true">🔍</span> Latest deploy log | https://... | 2022-04-08T18:37:03 | 2022-04-08T18:42:51 | {} | NONE |
vuejs | core | 1,094,819,860 | 1,228 | amcsi | I'm also getting this issue on a fresh Vite app. What am I expected to do? | 2022-04-11T09:39:23 | 2022-04-11T09:39:23 | {} | NONE |
vuejs | core | 1,094,921,469 | 5,696 | Maxim-Mazurok | > defineProps/Emits/Expose are compiler Hints and only available in `<script setup>`, so this is expected.
>
> [vuejs.org/api/sfc-script-setup.html#defineprops-defineemits](https://vuejs.org/api/sfc-script-setup.html#defineprops-defineemits)
>
> You also don't need them when using TSX with defineComponent(), just... | 2022-04-11T11:13:08 | 2022-04-11T11:13:26 | {} | NONE |
vuejs | core | 1,096,605,737 | 5,703 | Exotelis | I created a new stackblitz and added my tsconfig. When turning strict off, then it works (but also not the ideal solution).
[stackblitz.com](https://stackblitz.com/edit/vitejs-vite-5wbppj?file=src/components/MyText.ts)
On my local machine I created the new project by running `npm init vue@latest` so basically the ... | 2022-04-12T11:31:34 | 2022-04-12T12:42:12 | {} | NONE |
vuejs | core | 1,097,657,834 | 5,705 | LinusBorg | Fascinating.
Can reproduce this on my iPad, switching the Vue version in the second codepen example. When using Vue 3, the keyboard is in composite mode and does an autocorrect.
As we don't really *do* anything to the input in either version of Vue, there must be some weird little difference that makes WebKit not... | 2022-04-13T07:34:47 | 2022-04-13T07:34:47 | {} | MEMBER |
vuejs | core | 1,091,869,466 | 5,682 | netlify[bot] | ### <span aria-hidden="true">✅</span> Deploy Preview for *vue-next-template-explorer* ready!
| Name | Link |
|---------------------------------|------------------------|
|<span aria-hidden="true">🔨</span> Latest commit | c8cc62cba298558b222cdc44a2f43b0ab171ab75 |
|<span aria-hidden="true">🔍</span> Latest deploy lo... | 2022-04-07T15:18:40 | 2022-04-13T09:36:41 | {} | NONE |
vuejs | core | 1,094,811,664 | 5,698 | kikyous | A workaround (wrap prop default value with `reactive`, `ref` doen't work):
```js
import { ref, reactive } from 'vue';
export default {
props: {
obj: {
type: Object,
default() {
return reactive({ name: '' });
},
},
},
};
```
https://stackblitz.com/edit/vue-wjiyzs?fil... | 2022-04-11T09:33:29 | 2022-04-11T09:34:34 | {} | NONE |
vuejs | core | 1,097,034,895 | 5,704 | posva | This is a browser behavior. It happens without Vue too | 2022-04-12T18:08:20 | 2022-04-12T18:08:20 | {} | MEMBER |
vuejs | core | 1,098,899,812 | 5,717 | netlify[bot] | ### <span aria-hidden="true">✅</span> Deploy Preview for *vue-sfc-playground* ready!
| Name | Link |
|---------------------------------|------------------------|
|<span aria-hidden="true">🔨</span> Latest commit | 6966042b9c8dd45586991a744c23b09b003d85b1 |
|<span aria-hidden="true">🔍</span> Latest deploy log | http... | 2022-04-14T09:09:14 | 2022-04-14T09:11:14 | {} | NONE |
vuejs | core | 1,093,057,545 | 5,679 | bbotto-pdga | > Instead of an element event listener as in your example, it could be a fetch request, or a DOM selector query, or any of a million other things happening in that timeout callback that will introduce bugs if you let the timeout run beyond the lifecycle of your component it is meant to work inside of.
Fair enough. ... | 2022-04-08T16:19:11 | 2022-04-08T16:19:11 | {} | NONE |
vuejs | core | 1,094,726,833 | 5,584 | edison1105 | I feel it's a bug.
```javascript
} else {
// v-model used on a potentially ref binding in <script setup> inline mode.
// the assignment needs to check whether the binding is actually a ref.
const altAssignment =
bindingType === BindingTypes.SETUP_LET ? `${rawExp} = $event` : `null`
... | 2022-04-11T08:46:46 | 2022-04-11T08:46:46 | {} | MEMBER |
vuejs | core | 1,095,899,231 | 1,228 | privatenumber | Vite uses esbuild, which is why they recommend `isolatedModules`:
https://esbuild.github.io/content-types/#isolated-modules
> **Files are compiled independently**
>
> Even when transpiling a single module, the TypeScript compiler actually still parses imported files so it can tell whether an imported name is a t... | 2022-04-12T03:08:24 | 2022-04-12T03:08:24 | {} | CONTRIBUTOR |
vuejs | core | 1,096,105,933 | 1,228 | mgdodge | I think it's pretty clear from the original bug description, and numerous comments following, that the masses wish to follow the official recommendation to use `isolatedModules`, but the types created by Vue are "dirty" - they contain output such as ambient const enums that are not compatible with this recommendation. ... | 2022-04-12T05:49:23 | 2022-04-12T05:50:22 | {
"+1": 9
} | NONE |
vuejs | core | 1,096,242,880 | 5,701 | LinusBorg | I'm not sure we would rate this a bug as we require boolean props to be properly declared. This works fine: [Playground](https://sfc.vuejs.org/#eyJBcHAudnVlIjoiPHNjcmlwdCBzZXR1cD5cbmltcG9ydCB7IHJlZiwgZGVmaW5lQ3VzdG9tRWxlbWVudCB9IGZyb20gJ3Z1ZSdcbiAgaW1wb3J0IENvbXAgZnJvbSAnLi9Db21wLmNlLnZ1ZSdcbiAgXG4gIGN1c3RvbUVsZW1lbnRz... | 2022-04-12T07:25:10 | 2022-04-12T07:25:10 | {} | MEMBER |
vuejs | core | 1,055,311,758 | 5,498 | netlify[bot] | ### <span aria-hidden="true">✅</span> Deploy Preview for *vue-next-template-explorer* ready!
| Name | Link |
|---------------------------------|------------------------|
|<span aria-hidden="true">🔨</span> Latest commit | 0b9b7fa2fceb9b5e7ff20a2a001165800735eef7 |
|<span aria-hidden="true">🔍</span> Latest deploy lo... | 2022-03-01T11:07:25 | 2022-04-13T10:25:47 | {} | NONE |
vuejs | core | 1,055,311,644 | 5,498 | netlify[bot] | ### <span aria-hidden="true">✅</span> Deploy Preview for *vuejs-coverage* ready!
| Name | Link |
|---------------------------------|------------------------|
|<span aria-hidden="true">🔨</span> Latest commit | 0b9b7fa2fceb9b5e7ff20a2a001165800735eef7 |
|<span aria-hidden="true">🔍</span> Latest deploy log | https://... | 2022-03-01T11:07:19 | 2022-04-13T10:31:24 | {} | NONE |
vuejs | core | 1,098,409,872 | 5,715 | cexbrayat | No worries
Yeah, there's a lint rule we should add. I'll check it out tomorrow (it's getting late in France). I'll open a PR and ping you | 2022-04-13T19:34:30 | 2022-04-13T19:34:30 | {} | MEMBER |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.