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,501,480,221 | 6,882 | fightingsun | > > @DearGu 你好,请问你解决这个问题了,我也遇到了这个问题,只要是用InstanceType就会报错
>
> 我暂时是屏蔽对应的ts错误来处理的 还没找到解决方法
好的,谢谢,我找了一上午了,也没发现相关的解决办法,看来也只能先关闭这个错误提示了,为了用个eslint真心累,配置好了,最后因为一些不得不妥协的地方还是关了许多报错提示,早知道不用eslint了😂 | 2023-04-10T07:06:19 | 2023-04-10T07:06:19 | {} | NONE |
vuejs | core | 1,499,009,054 | 7,776 | vercel[bot] | [vc]: #MBEmNexl8/SG/R3PhMv2d7MhGYYdEnXtD2YD2upMFWo=:eyJpc01vbm9yZXBvIjp0cnVlLCJ0eXBlIjoiZ2l0aHViIiwicHJvamVjdHMiOlt7Im5hbWUiOiJzZmMtcGxheWdyb3VuZCIsInJvb3REaXJlY3RvcnkiOiJwYWNrYWdlcy9zZmMtcGxheWdyb3VuZCIsImluc3BlY3RvclVybCI6Imh0dHBzOi8vdmVyY2VsLmNvbS92dWVqcy9zZmMtcGxheWdyb3VuZC9CbXRnR21ENndGZ3dUVm95a1BVM21NSzk3TWNMIiwi... | 2023-04-06T12:43:50 | 2023-04-06T12:44:43 | {} | NONE |
vuejs | core | 1,499,821,980 | 8,045 | vercel[bot] | [vc]: #QqR4K5uGOjuYwcia7xfzZYT4KIuwkmWAHwenh1GNdvo=:eyJpc01vbm9yZXBvIjp0cnVlLCJ0eXBlIjoiZ2l0aHViIiwicHJvamVjdHMiOlt7Im5hbWUiOiJzZmMtcGxheWdyb3VuZCIsInJvb3REaXJlY3RvcnkiOiJwYWNrYWdlcy9zZmMtcGxheWdyb3VuZCIsImluc3BlY3RvclVybCI6Imh0dHBzOi8vdmVyY2VsLmNvbS92dWVqcy9zZmMtcGxheWdyb3VuZC9FeWM2U3NVQThUQ1Q5bWRSejlaNEpyVGR2SlU3Iiwi... | 2023-04-07T01:27:21 | 2023-04-07T01:27:24 | {} | NONE |
vuejs | core | 1,500,247,660 | 5,897 | LinusBorg | > Would be good to have some guidance by the developers here.
That presumes that we as the developers have any experience and authority in the field of how to cite an open source project in an academic paper.
I certainly don't, I'd presume many other don't, either. | 2023-04-07T12:30:23 | 2023-04-07T12:30:43 | {} | MEMBER |
vuejs | core | 1,503,008,640 | 8,034 | LinusBorg | el(ement)s
You dont have to clean up the maps because they are WeakMaps. When the element is being garbage collected, the maps entry is as well. | 2023-04-11T09:44:50 | 2023-04-11T09:44:50 | {} | MEMBER |
vuejs | core | 1,503,185,566 | 7,989 | lehni | Thanks @yyx990803! Somewhat related, I'd like to highlight this gnarly bug here in the devtools:
https://github.com/vuejs/devtools/issues/2037
Would be great to get this merged and released soon. | 2023-04-11T11:52:54 | 2023-04-11T11:52:54 | {} | CONTRIBUTOR |
vuejs | core | 1,499,009,096 | 7,266 | vercel[bot] | [vc]: #WHrOSMZ0y1jtBbATPr/caM6Flhmy27FmV0D8pUXNaF4=:eyJpc01vbm9yZXBvIjp0cnVlLCJ0eXBlIjoiZ2l0aHViIiwicHJvamVjdHMiOlt7Im5hbWUiOiJzZmMtcGxheWdyb3VuZCIsInJvb3REaXJlY3RvcnkiOiJwYWNrYWdlcy9zZmMtcGxheWdyb3VuZCIsImluc3BlY3RvclVybCI6Imh0dHBzOi8vdmVyY2VsLmNvbS92dWVqcy9zZmMtcGxheWdyb3VuZC82dVh1WlZRd2piU2FXb2o3cDRBd01IdzhvWE1OIiwi... | 2023-04-06T12:43:52 | 2023-04-06T12:44:04 | {} | NONE |
vuejs | core | 1,499,009,063 | 7,837 | vercel[bot] | [vc]: #UmXUvzt/oNj/gEUeTpzcmm/IQXNrQclClD2cQY5kk7s=:eyJpc01vbm9yZXBvIjp0cnVlLCJ0eXBlIjoiZ2l0aHViIiwicHJvamVjdHMiOlt7Im5hbWUiOiJzZmMtcGxheWdyb3VuZCIsInJvb3REaXJlY3RvcnkiOiJwYWNrYWdlcy9zZmMtcGxheWdyb3VuZCIsImluc3BlY3RvclVybCI6Imh0dHBzOi8vdmVyY2VsLmNvbS92dWVqcy9zZmMtcGxheWdyb3VuZC9BUjR6U0tyQ1hGZHRWbTl1ampHSkptV0tGWWo5Iiwi... | 2023-04-06T12:43:50 | 2023-04-06T12:44:08 | {} | NONE |
vuejs | core | 1,499,009,050 | 7,434 | vercel[bot] | [vc]: #KSWwya3xpLie+mcTIHcsvVxmXCBLtHd8W/zd4pNrK0Y=:eyJpc01vbm9yZXBvIjp0cnVlLCJ0eXBlIjoiZ2l0aHViIiwicHJvamVjdHMiOlt7Im5hbWUiOiJzZmMtcGxheWdyb3VuZCIsInJvb3REaXJlY3RvcnkiOiJwYWNrYWdlcy9zZmMtcGxheWdyb3VuZCIsImluc3BlY3RvclVybCI6Imh0dHBzOi8vdmVyY2VsLmNvbS92dWVqcy9zZmMtcGxheWdyb3VuZC9DQzFGY0ZGeERTQUxjTDZxOWYzWlYzSHlSdnpvIiwi... | 2023-04-06T12:43:50 | 2023-04-06T12:44:34 | {} | NONE |
vuejs | core | 1,499,000,037 | 8,043 | vercel[bot] | [vc]: #lzWqZwIx+ayHOvEq+GWeclgBZQFWZt+hbPcjcfrRbFk=:eyJpc01vbm9yZXBvIjp0cnVlLCJ0eXBlIjoiZ2l0aHViIiwicHJvamVjdHMiOlt7Im5hbWUiOiJzZmMtcGxheWdyb3VuZCIsInJvb3REaXJlY3RvcnkiOiJwYWNrYWdlcy9zZmMtcGxheWdyb3VuZCIsImluc3BlY3RvclVybCI6Imh0dHBzOi8vdmVyY2VsLmNvbS92dWVqcy9zZmMtcGxheWdyb3VuZC9GQnNEWXVhb3poaHYydE1ENjh1ZkNLUHZ5eXZWIiwi... | 2023-04-06T12:35:46 | 2023-04-07T13:31:30 | {} | NONE |
vuejs | core | 1,500,073,863 | 7,980 | LinusBorg | Yeah, I think this is rather a feature request for a more idiomatic way of extracting pieces of an SFCs template into small JSX-based functions and then running them *as a part of the SFCs own render function*.
The computed() usage in the example is one workaround, another would be `<component :is="Elem()">` | 2023-04-07T08:36:41 | 2023-04-07T14:46:53 | {
"+1": 3
} | MEMBER |
vuejs | core | 1,498,440,821 | 5,912 | yyx990803 | /ecosystem-ci run | 2023-04-06T03:26:47 | 2023-04-06T03:26:47 | {} | MEMBER |
vuejs | core | 1,499,009,047 | 7,891 | vercel[bot] | [vc]: #ATsJFjt6daTkg1ckERC+l35LInaQ09hzA7TJXbXhqdY=:eyJpc01vbm9yZXBvIjp0cnVlLCJ0eXBlIjoiZ2l0aHViIiwicHJvamVjdHMiOlt7Im5hbWUiOiJzZmMtcGxheWdyb3VuZCIsInJvb3REaXJlY3RvcnkiOiJwYWNrYWdlcy9zZmMtcGxheWdyb3VuZCIsImluc3BlY3RvclVybCI6Imh0dHBzOi8vdmVyY2VsLmNvbS92dWVqcy9zZmMtcGxheWdyb3VuZC84UFZzQUhVWVdlNmFFd0ZIQTVnbXltMlcyZGJiIiwi... | 2023-04-06T12:43:50 | 2023-04-06T12:43:53 | {} | NONE |
vuejs | core | 1,499,009,067 | 7,525 | vercel[bot] | [vc]: #I6CeCYiWX4lrICuiDBsFjOfi38LVy6U7nJXB6LoBGdg=:eyJpc01vbm9yZXBvIjp0cnVlLCJ0eXBlIjoiZ2l0aHViIiwicHJvamVjdHMiOlt7Im5hbWUiOiJzZmMtcGxheWdyb3VuZCIsInJvb3REaXJlY3RvcnkiOiJwYWNrYWdlcy9zZmMtcGxheWdyb3VuZCIsImluc3BlY3RvclVybCI6Imh0dHBzOi8vdmVyY2VsLmNvbS92dWVqcy9zZmMtcGxheWdyb3VuZC84RmtwcFYzeHFXQjYzRVBIZ2t2RWo4WHRXbnQ2Iiwi... | 2023-04-06T12:43:51 | 2023-04-06T12:43:56 | {} | NONE |
vuejs | core | 1,499,009,064 | 7,803 | vercel[bot] | [vc]: #5LlgPT2qi9AlwUCGwT2X86ZXqbsJENaZSuuOBiFmr1E=:eyJpc01vbm9yZXBvIjp0cnVlLCJ0eXBlIjoiZ2l0aHViIiwicHJvamVjdHMiOlt7Im5hbWUiOiJzZmMtcGxheWdyb3VuZCIsInJvb3REaXJlY3RvcnkiOiJwYWNrYWdlcy9zZmMtcGxheWdyb3VuZCIsImluc3BlY3RvclVybCI6Imh0dHBzOi8vdmVyY2VsLmNvbS92dWVqcy9zZmMtcGxheWdyb3VuZC83Y2hzQlFKTU50R2dRTkNDNGdiSEtVUXJkZWRqIiwi... | 2023-04-06T12:43:50 | 2023-04-06T12:43:59 | {} | NONE |
vuejs | core | 1,499,009,090 | 7,004 | vercel[bot] | [vc]: #tUtoK1zFYAqnoZXzq0vycZm/OcFNr/1j+Xb6lPwTg6U=:eyJpc01vbm9yZXBvIjp0cnVlLCJ0eXBlIjoiZ2l0aHViIiwicHJvamVjdHMiOlt7Im5hbWUiOiJzZmMtcGxheWdyb3VuZCIsInJvb3REaXJlY3RvcnkiOiJwYWNrYWdlcy9zZmMtcGxheWdyb3VuZCIsImluc3BlY3RvclVybCI6Imh0dHBzOi8vdmVyY2VsLmNvbS92dWVqcy9zZmMtcGxheWdyb3VuZC8zenNlOTduV2tUaVdVRWRZNWh4dTRjNmZSTG42Iiwi... | 2023-04-06T12:43:51 | 2023-04-06T12:44:55 | {} | NONE |
vuejs | core | 1,500,300,969 | 6,160 | vercel[bot] | [vc]: #8pOhxkDD0CmZTM/ykAwk8gViyL9uLaL9cqDtbidqF4s=:eyJpc01vbm9yZXBvIjp0cnVlLCJ0eXBlIjoiZ2l0aHViIiwicHJvamVjdHMiOlt7Im5hbWUiOiJzZmMtcGxheWdyb3VuZCIsInJvb3REaXJlY3RvcnkiOiJwYWNrYWdlcy9zZmMtcGxheWdyb3VuZCIsImluc3BlY3RvclVybCI6Imh0dHBzOi8vdmVyY2VsLmNvbS92dWVqcy9zZmMtcGxheWdyb3VuZC8yeXA0ZWYydzZvYnFNRGJxaUtRUGJOeTlxZGlSIiwi... | 2023-04-07T13:43:14 | 2023-04-07T13:43:49 | {} | NONE |
vuejs | core | 1,500,569,808 | 5,055 | mariusa | Another reproduction: https://play.vuejs.org/#eNq1ksFqwzAMQH9FM4Ns0DVsu5W0UHbZbZfBLr64ibIZHNvYTjYo+ffJbpbVkEMvPcp6kh6Sj2xv7XrokW1Y5WsnbQCPobc7rmVnjQtwBIctjNA600FBaDGnXkxnp/d1GYPYKU+/acyIxwkBOIPev00GPU1QbbQP0PlP2EaJu+IVlTLwYZxqbop7rqvy5Ey2FATsrBIBYxSqJFcr4f2Ws9YYeOZsV6X+BAAkIOotM5T5x6LgMkYZwqpyns1W7G8Tcae5UyOHrM9BOM5geD... | 2023-04-07T19:18:22 | 2023-04-07T19:18:22 | {} | NONE |
vuejs | core | 1,501,463,161 | 6,882 | fightingsun | @DearGu 你好,请问你解决这个问题了,我也遇到了这个问题,只要是用InstanceType就会报错 | 2023-04-10T06:44:40 | 2023-04-10T06:44:40 | {} | NONE |
vuejs | core | 1,501,487,348 | 6,882 | DearGu | > > > @DearGu 你好,请问你解决这个问题了,我也遇到了这个问题,只要是用InstanceType就会报错
> >
> >
> > 我暂时是屏蔽对应的ts错误来处理的 还没找到解决方法
>
> 好的,谢谢,我找了一上午了,也没发现相关的解决办法,看来也只能先关闭这个错误提示了,为了用个eslint真心累,配置好了,最后因为一些不得不妥协的地方还是关了许多报错提示,早知道不用eslint了😂
如果不限制any就还好 限制了这个问题就会出现了 | 2023-04-10T07:13:04 | 2023-04-10T07:13:04 | {} | NONE |
vuejs | core | 1,502,464,136 | 7,593 | ferferga | @sxzz I'm so sorry for directly pinging you, but I'd like to know if there's something we can do to have this merged since it's a deal breaker for our workflow and it looks like a trivial fix.
Thank you very much in advance! ❤️ | 2023-04-10T23:24:44 | 2023-04-10T23:24:44 | {} | CONTRIBUTOR |
vuejs | core | 1,497,629,259 | 5,912 | johnsoncodehk | It's not a trade-off, just a bug, thanks for report that. | 2023-04-05T14:54:42 | 2023-04-05T14:54:42 | {} | MEMBER |
vuejs | core | 1,502,586,302 | 8,060 | JayFate | @sxzz Do you have a minute to review this PR ? | 2023-04-11T02:07:29 | 2023-04-11T02:07:29 | {} | CONTRIBUTOR |
vuejs | core | 1,502,914,323 | 8,034 | katerlouis | Very interesting; I've tried something similar, since it felt wrong to use reactive properties in directives, but did not know about `WeakMap`–
I'm wondering what the prefix `els` is for?
Should you clean up inside `elsColors` and `elsHandlers` aswell in `beforeUnmount()`?
PS: in case somebody copies your cod... | 2023-04-11T08:36:35 | 2023-04-11T08:36:35 | {} | NONE |
vuejs | core | 1,497,594,379 | 7,982 | yyx990803 | Just a note for the future: downstream libs like `test-utils` and `vuetify` rely on the argument order of public types like `DefineComponent`, `ComponentPublicInstance` and component option types. The order is adjusted in bdf557f6. | 2023-04-05T14:33:03 | 2023-04-05T14:33:03 | {
"+1": 2
} | MEMBER |
vuejs | core | 1,497,618,111 | 5,912 | skirtles-code | Here's the same example, but I've hidden the error with a `?.` and put in a counter instead. Notice how `c` is being evaluated twice on this PR but only once on `main`:
* [main](https://sfc.vuejs.org/#eNp1Uctug0AM/BVrLyFKsrQ9IpKq6m/shRCTEO1L+6AHxL/XhGcOnMBjz9iz07Ifa3kTkWUs96WrbQCPIdqL0LWyxgVowWF1hNIoGwPeoIPKGQU7Iu2E... | 2023-04-05T14:47:25 | 2023-04-05T14:47:25 | {} | CONTRIBUTOR |
vuejs | core | 1,500,245,432 | 8,008 | LinusBorg | > I tested it. Your workaround works but you should remove the '()' to return the function instead of the result.
Nope. If they are composables, they need to be called to get the actual function:
https://play.vuejs.org/#eNp1UktTwjAQ/is7ubTVGpQjA4yOZ04ejYe0BKjmNXkwOgz/3U1ToDB6Snb322+/fRzIi7V0HwWZkblvXWcDeBGiXTLdKW... | 2023-04-07T12:26:37 | 2023-04-07T12:26:37 | {} | MEMBER |
vuejs | core | 1,502,707,184 | 8,059 | LinusBorg | Replace `.slide-enter-to` with `.slide-enter-from` | 2023-04-11T05:26:45 | 2023-04-11T05:26:45 | {
"+1": 1
} | MEMBER |
vuejs | core | 1,498,013,741 | 8,018 | sqal | ```js
const modelValue = defineModel({ type: null, required: false, default: 0 })
// generated code
const __sfc__ = _defineComponent({
props: {
"modelValue": { required: true, ...{ type: null, required: false, default: 0 } },
},
})
```
Can this output be optimized to `modelValue: { type: null, requir... | 2023-04-05T19:34:17 | 2023-04-05T19:34:17 | {} | CONTRIBUTOR |
vuejs | core | 1,498,694,386 | 7,391 | equt | > The easiest and safest way to avoid [..] is to always escape an ASCII case-insensitive match for `<!--` as `\x3C!--`, `<script` as `\x3Cscript`, and `</script` as `\x3C/script` when these sequences appear in literals in scripts [..]
So according to the [WHATWG HTML Standard](https://html.spec.whatwg.org/#restricti... | 2023-04-06T08:38:41 | 2023-04-06T08:38:41 | {
"+1": 1,
"laugh": 2
} | CONTRIBUTOR |
vuejs | core | 1,498,842,382 | 8,008 | Rednas83 | Can you provide an example? I tried many things but I didn't manage to dynamically call a function inside a composable. | 2023-04-06T10:24:58 | 2023-04-06T10:24:58 | {} | NONE |
vuejs | core | 1,499,009,049 | 6,783 | vercel[bot] | [vc]: #UZxrWC2miYPlT4vUyiXTPkangV1pGR05pLyhaBqBHU0=:eyJpc01vbm9yZXBvIjp0cnVlLCJ0eXBlIjoiZ2l0aHViIiwicHJvamVjdHMiOlt7Im5hbWUiOiJzZmMtcGxheWdyb3VuZCIsInJvb3REaXJlY3RvcnkiOiJwYWNrYWdlcy9zZmMtcGxheWdyb3VuZCIsImluc3BlY3RvclVybCI6Imh0dHBzOi8vdmVyY2VsLmNvbS92dWVqcy9zZmMtcGxheWdyb3VuZC81eEVZZFZ2WDlGWEJ0VXNxZ0pvZkVQaTdzNDhLIiwi... | 2023-04-06T12:43:50 | 2023-04-06T12:44:22 | {} | NONE |
vuejs | core | 1,499,009,065 | 7,344 | vercel[bot] | [vc]: #uw3Ti9jcNMbUh4bsPmqO6xlNoXHW0W+01fUGcnmxyDc=:eyJpc01vbm9yZXBvIjp0cnVlLCJ0eXBlIjoiZ2l0aHViIiwicHJvamVjdHMiOlt7Im5hbWUiOiJzZmMtcGxheWdyb3VuZCIsInJvb3REaXJlY3RvcnkiOiJwYWNrYWdlcy9zZmMtcGxheWdyb3VuZCIsImluc3BlY3RvclVybCI6Imh0dHBzOi8vdmVyY2VsLmNvbS92dWVqcy9zZmMtcGxheWdyb3VuZC9GZ0VpdUFzcUsyOGRFcTNyQUNFdk1SVDROWWd6Iiwi... | 2023-04-06T12:43:50 | 2023-04-06T12:44:58 | {} | NONE |
vuejs | core | 1,501,037,434 | 7,290 | KaelWD | This doesn't seem to fix #6095 when patched into vuetify, `prevTree.el` and `instance.subTree` are still null.
To reproduce:
- clone vuetify
- checkout `fix/15207-suspense-groups`
- add the following patch to `patches/@vue+runtime-core+3.2.47.patch`
<details>
```
diff --git a/node_modules/@vue/runtime-cor... | 2023-04-09T04:27:57 | 2023-04-09T04:38:04 | {} | CONTRIBUTOR |
vuejs | core | 1,498,559,902 | 8,041 | vercel[bot] | @equt is attempting to deploy a commit to the **vuejs** Team on [Vercel](https://vercel.com).
A member of the Team first needs to [authorize it](https://vercel.com/git/authorize?team=vuejs&type=github&job=%7B%22headInfo%22%3A%7B%22sha%22%3A%222dac85d170928543bb01f6b1610659b66a9723a5%22%7D%2C%22id%22%3A%22QmeurAv7QRtn8... | 2023-04-06T06:31:57 | 2023-04-06T06:31:57 | {} | NONE |
vuejs | core | 1,498,709,743 | 8,042 | yyx990803 | The strings are replaced with const enum numbers in production builds to reduce bundle size. You can check the corresponding full message here: https://github.com/vuejs/core/blob/main/packages/runtime-core/src/errorHandling.ts#L42-L59
We should document this behavior. | 2023-04-06T08:51:40 | 2023-04-06T08:51:40 | {
"+1": 4
} | MEMBER |
vuejs | core | 1,498,740,032 | 8,041 | vercel[bot] | [vc]: #1csDo5Ed14yQ5u3MEr5GJhUGCCJK13DayVyQ6nNHGQo=:eyJpc01vbm9yZXBvIjp0cnVlLCJ0eXBlIjoiZ2l0aHViIiwicHJvamVjdHMiOlt7Im5hbWUiOiJzZmMtcGxheWdyb3VuZCIsInJvb3REaXJlY3RvcnkiOiJwYWNrYWdlcy9zZmMtcGxheWdyb3VuZCIsImluc3BlY3RvclVybCI6Imh0dHBzOi8vdmVyY2VsLmNvbS92dWVqcy9zZmMtcGxheWdyb3VuZC81d1g4R3k0dUR1dHhEcXBjVU50eU1OVlhDeXpDIiwi... | 2023-04-06T09:12:44 | 2023-04-06T09:12:46 | {} | NONE |
vuejs | core | 1,502,812,843 | 7,743 | DrPhil | Just checking that it's not me that we are waiting for. Is there something else I should do to get this merged? There's this one unresolved comment, but I'm not sure what the right resolution is for it. If there's anything else I can do, please let me know. | 2023-04-11T07:23:44 | 2023-04-11T07:23:44 | {
"heart": 1
} | CONTRIBUTOR |
vuejs | core | 1,545,357,820 | 8,286 | yendyr | downgrade to exact version: 3.2.47 will resolve this issue.. i've been faced same issue | 2023-05-12T08:14:30 | 2023-05-12T08:14:30 | {} | NONE |
vuejs | core | 1,546,246,594 | 8,214 | leonardorafael | Also, the `<input type="number">` in vanilla JS has `.value` and `.valueAsNumber` that returns `""` and `null` on empty fields.
Would be nice to have the same behavior here. | 2023-05-12T20:18:53 | 2023-05-12T20:18:53 | {} | NONE |
vuejs | core | 1,547,146,717 | 8,287 | nickcarterney | Hi @yyx990803 ,
I see that you've ignored the through exception issue, but you still remove DOM actually. Could you please not remove DOM in production mode?
https://github.com/vuejs/core/commit/c454b9d7f431d57abedb7184d1e4059914c4463f
`, just like the native pseudo-class selector `:nth-of-type(n)`, not using parentheses will cause `postcss-selector-parser` to generate Different results, so I think the prom... | 2023-05-16T06:49:11 | 2023-05-16T06:49:11 | {
"+1": 1
} | MEMBER |
vuejs | core | 1,549,437,329 | 8,331 | xiaoxiangmoe | @jd-solanki @Anubarak After [discussion](https://github.com/vuejs/core/issues/8310#issuecomment-1549429045) with [pikax](https://github.com/pikax), we update demo of #8310 . This is same error now. | 2023-05-16T10:53:51 | 2023-05-16T10:53:51 | {
"+1": 4
} | CONTRIBUTOR |
vuejs | core | 1,550,012,984 | 8,303 | arpowers | @xiaoxiangmoe yes! Running tsx ... As a nodejs loader anyway | 2023-05-16T16:40:15 | 2023-05-16T16:41:09 | {} | NONE |
vuejs | core | 1,545,534,640 | 7,267 | ccqgithub | vue 3.3.1 and webview < android 9 has this problem | 2023-05-12T10:34:16 | 2023-05-12T10:35:36 | {} | NONE |
vuejs | core | 1,549,222,315 | 8,331 | an501920078 | me too! | 2023-05-13T07:29:05 | 2023-05-13T07:29:05 | {} | NONE |
vuejs | core | 1,547,283,668 | 8,307 | SH0UMEN | I apologize for the inattention. Indeed, in svg there is such a tag | 2023-05-15T06:51:54 | 2023-05-15T06:51:54 | {} | NONE |
vuejs | core | 1,547,367,982 | 8,318 | LinusBorg | duplicate: #5540 | 2023-05-15T07:57:11 | 2023-05-15T07:57:11 | {} | MEMBER |
vuejs | core | 1,548,329,061 | 8,303 | arpowers | @xiaoxiangmoe i've downgraded vue back to 3.2.X ... did you hit the same problem?
@edison1105 yes, i can put one together if this is an isolated issue... | 2023-05-15T18:11:04 | 2023-05-15T18:11:04 | {} | NONE |
vuejs | core | 1,548,864,344 | 8,326 | edison1105 | https://github.com/kalvenschraut/vue-unresolved-types-build-failure/blob/master/packages/types/dist/index.d.ts
```typescript
export { Color } from './Styling.js'; // should be './Styling'
```
| 2023-05-16T02:10:07 | 2023-05-16T02:10:07 | {} | MEMBER |
vuejs | core | 1,549,135,874 | 8,310 | Anubarak | > > Same error, this should be documented if it is intended.
>
> @pikax 's demo is TypeScript's feature. Not Vue's feature.
But `withDefaults` is a Vue function/feature isn't it? Why should TS fix this?
I mean: it works when I don't use Vue and it's `withDefaults` function (when I create my own function that def... | 2023-05-16T07:22:10 | 2023-05-16T07:35:39 | {
"+1": 2
} | NONE |
vuejs | core | 1,545,778,035 | 8,301 | yyx990803 | This is something that needs to be fixed in https://github.com/vuejs/vue-jest I believe. /cc @lmiller1990
It seems TypeScript does not populate `ts.sys` when loaded in Jest - I'm not sure if passing the Jest-mocked fs into `compileScript` would resolve this. | 2023-05-12T13:47:04 | 2023-05-12T13:49:08 | {
"+1": 6
} | MEMBER |
vuejs | core | 1,546,087,002 | 2,291 | acnowland | This does not seem to have been resolved, is there plans to resolve this? I realize there is this workaround but in a large application this is a fairly breaking change. | 2023-05-12T17:51:48 | 2023-05-12T17:52:11 | {} | NONE |
vuejs | core | 1,546,840,915 | 8,301 | franklin-tina | I recently ran into the same issue, although I'm not using `jest`. Will put up a simple repro and link here
[Discussion on discord](https://discord.com/channels/325477692906536972/568037134968160256/1107207082781970492) | 2023-05-14T08:30:08 | 2023-05-14T08:30:08 | {} | NONE |
vuejs | core | 1,549,083,293 | 8,301 | mrc-bsllt | > > I have the same problem with version 3.2.2 and without jest. Any news?
>
> I think this feature is available only from `v3.3.x` See [here](https://blog.vuejs.org/posts/vue-3-3#imported-and-complex-types-support-in-macros:~:text=TypeScript%20DX%20Improvements-,Imported%20and%20Complex%20Types%20Support%20in%20Mac... | 2023-05-16T06:49:05 | 2023-05-16T06:49:05 | {} | NONE |
vuejs | core | 1,549,122,435 | 8,310 | xiaoxiangmoe | > Same error, this should be documented if it is intended.
@pikax 's demo is TypeScript's feature. Not Vue's feature.
| 2023-05-16T07:15:33 | 2023-05-16T07:15:33 | {} | CONTRIBUTOR |
vuejs | core | 1,549,464,731 | 8,334 | kirillshatalkin | @sqal to reproduce you need to [define component as Custom Element](https://vuejs.org/guide/extras/web-components.html#building-custom-elements-with-vue):
1. Rename `Comp.vue` to `Comp.ce.vue`
2. Define it as custom element `import { defineCustomElement } from "vue"; import Comp from './Comp.ce.vue'; window.customE... | 2023-05-16T11:14:13 | 2023-05-16T11:20:37 | {} | NONE |
vuejs | core | 1,549,504,853 | 8,310 | Anubarak | @xiaoxiangmoe I guess we talk about two different things or maybe I don't understand what you mean at all.
It's not about the correct usage of TS and it's not about how TS should be used. That's not the point here. It's simply about the fact that you cannot use `withDefaults` with generics no matter how many times yo... | 2023-05-16T11:43:44 | 2023-05-16T11:47:05 | {} | NONE |
vuejs | core | 1,549,764,330 | 8,326 | edison1105 | @kalvenschraut
Vue does not support resolve type elements from **an empty js file** | 2023-05-16T14:14:44 | 2023-05-16T14:14:44 | {} | MEMBER |
vuejs | core | 1,550,037,275 | 8,303 | xiaoxiangmoe | So, I think it should be a bug of tsx. | 2023-05-16T16:55:24 | 2023-05-16T16:55:24 | {} | CONTRIBUTOR |
vuejs | core | 1,545,466,618 | 4,294 | rbecheras | Hi @Miofly well you should open a new issue because this one is closed. But you can link this one to from the new issue
| 2023-05-12T09:38:35 | 2023-05-12T09:38:35 | {} | NONE |
vuejs | core | 1,545,673,727 | 8,286 | dimatakoy | > Hi @yyx990803, complex type includes also all the types which are created from type utility like `Pick`, `Omit` etc?
It ANY type that have underline type-computations (even `&`, `|`, and generics(any utility types too)). HTMLAttributes extends EventHandlers<T>, so for now we cannot use this trick without `@vue-ig... | 2023-05-12T12:33:27 | 2023-05-12T12:33:27 | {} | NONE |
vuejs | core | 1,546,248,826 | 8,214 | TheSeg | > Also, the `<input type="number">` in vanilla JS has `.value` and `.valueAsNumber` that returns `""` and `null` on empty fields. Would be nice to have the same behavior here.
Amending my comment that I'm also seeing this in `<input type="number">`. | 2023-05-12T20:21:38 | 2023-05-12T20:21:38 | {} | NONE |
vuejs | core | 1,547,923,089 | 8,319 | Alfred-Skyblue | [Document](https://vuejs.org/api/general.html#definecomponent) | 2023-05-15T14:05:39 | 2023-05-15T14:05:39 | {
"+1": 1
} | MEMBER |
vuejs | core | 1,548,836,620 | 8,303 | arpowers | @edison1105 @yyx990803 possible to get any suggestions on what might causing this? im struggling to duplicate in a minimal environment... will take me quite a bit of trial and error with packages, vite configs. | 2023-05-16T01:31:30 | 2023-05-16T01:31:30 | {} | NONE |
vuejs | core | 1,548,845,136 | 8,310 | xiaoxiangmoe | @pikax This is work as intended
For example:
```ts
function someFunction<T extends string | null>(
test: T = 'test'
) {
}
```
```
Type '"test"' is not assignable to type 'T'.
'"test"' is assignable to the constraint of type 'T', but 'T' could be instantiated with a different subtype of constraint ... | 2023-05-16T01:44:58 | 2023-05-16T01:45:09 | {} | CONTRIBUTOR |
vuejs | core | 1,548,962,034 | 8,316 | baiwusanyu-c | Can you provide a repo that reproduces the problem?🧐 | 2023-05-16T04:16:28 | 2023-05-16T04:16:28 | {} | MEMBER |
vuejs | core | 1,549,237,217 | 8,325 | grindpride | if i change define props to
```
withDefaults(
defineProps<{
modelValue: T;
sameModel?: string;
}>(),
{
sameModel: 'sameModel default',
}
);
```
its stil throws error
```
TS2345: Argument of type '{ sameModel: string; }' is not assignable to parameter of type 'InferDefaults<DefineProp... | 2023-05-16T08:35:43 | 2023-05-16T08:35:43 | {} | NONE |
vuejs | core | 1,549,462,500 | 8,310 | Anubarak | @xiaoxiangmoe So in the end, all comes down to `withDefaults` is not accepting the generic type. I'm not entirely sure what your issue is or why you don't want to accept the problem we have. We are just talking about the fact, that you can't use generics along with `withDefaults`. In the end all your examples don't wo... | 2023-05-16T11:12:30 | 2023-05-16T11:14:31 | {} | NONE |
vuejs | core | 1,549,831,245 | 2,291 | henribru | https://github.com/vuejs/core/issues/7030 seems like essentially the same issue to me and it links a reproduction where this still occurs. | 2023-05-16T14:52:12 | 2023-05-16T14:52:12 | {
"+1": 1
} | NONE |
vuejs | core | 1,550,325,195 | 4,294 | johnnyshankman | @Miofly open a new issue bc I too am having this issue. If I import the interface it does not work. If I define the interface inside the same file as the component, no issue.
My current workaround is:
```
// `export class MProps extends Vue { }`
// `export const MOptionsProps: PropsDefinition = { ... classic pro... | 2023-05-16T20:36:17 | 2023-05-16T22:32:24 | {} | NONE |
vuejs | core | 1,545,530,835 | 8,296 | yyx990803 | When you are passing props with render functions, refs are **NOT** automatically unwrapped. You are passing the raw computed ref object to the child component in `Wrapper.vue`, instead of the boolean value. | 2023-05-12T10:30:43 | 2023-05-12T10:30:43 | {
"+1": 1
} | MEMBER |
vuejs | core | 1,545,659,320 | 8,286 | yyx990803 | The original repro (and any usage that used a `Props` interface that extends external types) seemed to work in 3.2, but the 3.2 behavior was actually silently ignoring the extends. So it allowed those props to be passed at the type / IDE level, but at runtime they are not treated as actual props, but fallthrough attrs.... | 2023-05-12T12:22:18 | 2023-05-12T12:23:52 | {
"-1": 3,
"confused": 2,
"hooray": 4
} | MEMBER |
vuejs | core | 1,545,666,515 | 8,286 | ahnpnl | Hi @yyx990803, complex type includes also all the types which are created from type utility like `Pick`, `Omit` etc? | 2023-05-12T12:28:19 | 2023-05-12T12:28:19 | {} | NONE |
vuejs | core | 1,546,664,348 | 8,306 | DamianGlowala | This is how Prettier formats my code and there should be no issue with that. Notice how lengthy the variable name is (hence splitting into a separate line). The latter example you included is indeed what I need to do manually to build the application.
This looks like an edge case that only fails in a specific situat... | 2023-05-13T14:23:39 | 2023-05-13T14:23:39 | {
"+1": 6
} | CONTRIBUTOR |
vuejs | core | 1,546,735,675 | 7,553 | rob-pace | @sxzz Do you know how this would be accomplished using `.ts`?
```
export default defineComponent({
name: 'MyComponent',
props: {
// are there vue native types that can be imported here to support discriminated unions and intersections?
},
setup() {
return () => (
// ...
)
}
})
`... | 2023-05-13T19:29:36 | 2023-05-14T03:22:46 | {} | NONE |
vuejs | core | 1,547,582,974 | 8,319 | Alfred-Skyblue | It seems that you should use the second parameter of defineComponent to pass it instead of assigning it directly.
```ts
import { defineComponent, h } from 'vue';
const props = {
text: { type: String, default: 'ok' },
};
const component = defineComponent(
(props, { attrs }) => {
return () => h('d... | 2023-05-15T10:16:31 | 2023-05-15T10:16:31 | {
"+1": 1
} | MEMBER |
vuejs | core | 1,547,904,446 | 8,301 | mrc-bsllt | I have the same problem with version 3.2.2 and without jest.
Any news? | 2023-05-15T13:55:41 | 2023-05-15T13:55:41 | {} | NONE |
vuejs | core | 1,547,980,491 | 8,319 | JorisAerts | > [Document](https://vuejs.org/api/general.html#definecomponent)
Super, thanks! | 2023-05-15T14:27:43 | 2023-05-15T14:27:43 | {} | NONE |
vuejs | core | 1,549,700,575 | 8,334 | edison1105 | There's a problem here. PR welcome.
https://github.com/vuejs/core/blob/d40d4a33803d6740c4af395a80d1d339eb58d7d6/packages/runtime-dom/src/modules/events.ts#L60 | 2023-05-16T13:42:17 | 2023-05-16T13:42:17 | {} | MEMBER |
vuejs | core | 1,545,325,078 | 8,293 | baiwusanyu-c | So toRefs, as a runtime method, wraps a compilation macro, and it will not process it in the compilation phase, even in 3.2.47 | 2023-05-12T07:48:31 | 2023-05-12T07:48:58 | {
"+1": 1
} | MEMBER |
vuejs | core | 1,549,222,323 | 8,331 | jd-solanki | reference: https://github.com/vuejs/core/issues/8310 | 2023-05-15T05:16:41 | 2023-05-15T05:16:41 | {} | NONE |
vuejs | core | 1,548,800,362 | 8,303 | arpowers | @xiaoxiangmoe can confirm that the temp solution did patch it
@edison1105 i tried for an hour to recreate this and struck out, gonna take some time to isolate whats causing it (vite vue plugin?)
| 2023-05-16T00:38:37 | 2023-05-16T00:38:37 | {} | NONE |
vuejs | core | 1,549,660,547 | 8,326 | kalvenschraut | The inferred type here is null (based on my comments in the original post) which is to represent an any type from what I recall in the docs, meaning the declared type should be matching it in this case.
Also I do believe it is standard to have the .js extension if the module resolution is nodenext. Granted volar se... | 2023-05-16T13:17:21 | 2023-05-16T13:42:59 | {} | CONTRIBUTOR |
vuejs | core | 1,545,444,067 | 8,293 | Shyam-Chen | @1739616529 You need to update `@vitejs/plugin-vue`.

| 2023-05-12T09:21:26 | 2023-05-12T09:21:26 | {
"+1": 2
} | CONTRIBUTOR |
vuejs | core | 1,547,058,078 | 8,298 | edison1105 | as a workaround: use `child` as key
```vue
<template v-for="(child, index) in children" :key="child">
<component :is="child"></component>
</template>
``` | 2023-05-15T01:05:00 | 2023-05-15T01:05:00 | {
"+1": 1
} | MEMBER |
vuejs | core | 1,548,235,790 | 8,301 | franklin-tina |
> I have the same problem with version 3.2.2 and without jest. Any news?
I think this feature is available only from `v3.3.x`
See [here](https://blog.vuejs.org/posts/vue-3-3#imported-and-complex-types-support-in-macros:~:text=TypeScript%20DX%20Improvements-,Imported%20and%20Complex%20Types%20Support%20in%20Ma... | 2023-05-15T17:08:18 | 2023-05-15T17:08:18 | {
"+1": 2
} | NONE |
vuejs | core | 1,549,274,405 | 8,325 | xiaoxiangmoe | @grindpride This is another error. duplicated to https://github.com/vuejs/core/issues/8331 | 2023-05-16T09:01:02 | 2023-05-16T09:01:02 | {} | CONTRIBUTOR |
vuejs | core | 1,549,485,680 | 8,310 | xiaoxiangmoe | > I'm not entirely sure what your issue is or why you don't want to accept the problem we have.
```ts
<!-- the original demo -->
<script lang="ts" generic="T extends string | null">
withDefaults(defineProps<{
test: T
}>(), {
test: () => 'test'
})
</script>
```
@Anubarak If the original demo is... | 2023-05-16T11:30:13 | 2023-05-16T11:45:56 | {} | CONTRIBUTOR |
vuejs | core | 1,549,222,304 | 8,331 | dicren | It happens to me too! | 2023-05-12T07:26:27 | 2023-05-12T07:26:27 | {} | NONE |
vuejs | core | 1,548,794,009 | 5,303 | spencercap | @Hulkmaster
thank you 🙏 | 2023-05-16T00:27:33 | 2023-05-16T00:27:33 | {} | NONE |
vuejs | core | 1,548,926,903 | 8,310 | LQ6666666 | > There is also a BUG,` InstanceType<typeof genericComponent>,` which is also problematic 
+1 | 2023-05-16T03:34:15 | 2023-05-16T03:34:15 | {
"eyes": 1
} | NONE |
vuejs | core | 1,549,538,373 | 8,334 | sqal | I am sorry, I didn't notice at first that you were using web component., In that case, events such as capture, once, passive indeed don't work with custom elements | 2023-05-16T12:07:04 | 2023-05-16T12:07:04 | {} | CONTRIBUTOR |
vuejs | core | 1,549,130,180 | 8,326 | edison1105 | > Also regardless Vue should not be failing to build if the type cannot be resolved.
Agreed.
I'm not sure if this is a bug
- maybe we should avoid hard errors when the inferredType does not match the declared type.
- `export { Color } from './Styling.js'`. maybe we can improve `resolveExt` logic eg: if the fi... | 2023-05-16T07:19:21 | 2023-05-16T14:45:35 | {} | MEMBER |
vuejs | core | 1,549,834,242 | 8,303 | xiaoxiangmoe | I catch it.
In any vue 3.3.2 project. Add file
```ts
// file: run-vite.mts
import * as vite from 'vite'
const root = process.cwd()
async function main() {
const viteDevServer = await vite.createServer({
root,
logLevel: 'info',
server: {
middlewareMode: false,
... | 2023-05-16T14:53:54 | 2023-05-16T14:53:54 | {} | CONTRIBUTOR |
vuejs | core | 1,545,454,248 | 8,293 | yyx990803 | The linked StackBlitz link seems to have been edited and no longer demonstrates the issue - but based on the conversation, you cannot use `toRefs` to directly wrap a macro. This has always been the case even in 3.2.47. | 2023-05-12T09:28:34 | 2023-05-12T09:28:34 | {} | MEMBER |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.