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 | 894,107,002 | 3,258 | nandi95 | Can we have some movement on this PR? | 2021-08-06T08:45:42 | 2021-08-06T08:45:42 | {} | CONTRIBUTOR |
vuejs | core | 894,339,676 | 4,248 | jods4 | I understand the maintenance bit.
It's a bit unfortunate though that removing a node from DOM is something only the compiler can do :(
Here's a use case, let me know if you think of a better way.
I would like to create a directive to easily apply some security policies throughout our application.
Something like... | 2021-08-06T15:31:15 | 2021-08-06T15:31:15 | {} | CONTRIBUTOR |
vuejs | core | 894,596,382 | 4,245 | yyx990803 | The reason we don't cache them on components is because some components may expect to check the passed in function's `length` (arity). See https://github.com/vuejs/vue-next/commit/87c2a1e50f5317a0c47051b06f419e60e5644a1a
Not sure if it's possible to cache and retain arity at the same time. | 2021-08-07T03:08:38 | 2021-08-07T03:08:38 | {
"+1": 1
} | MEMBER |
vuejs | core | 894,664,608 | 4,243 | Cherry | Just tested this @yyx990803. Unfortunately it throws the error:
`Error: Failed to get the 'ready' property on 'Writer': the property is not implemented.`
It seems this is another place where Cloudflare Workers divert from the spec. | 2021-08-07T14:53:58 | 2021-08-07T14:53:58 | {} | CONTRIBUTOR |
vuejs | core | 890,879,055 | 4,237 | posva | Duplicate of https://github.com/vuejs/vue-next/issues/2279 | 2021-08-02T09:34:13 | 2021-08-02T09:34:13 | {} | MEMBER |
vuejs | core | 891,770,130 | 4,241 | posva | 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). | 2021-08-03T11:29:45 | 2021-08-03T11:29:45 | {} | MEMBER |
vuejs | core | 892,226,848 | 4,243 | lidlanca | The polyfill and the cloudflare native implementation may not play nice.
that is why I suggested `pipeReaderToWriter()`
```js
async pipeReaderToWriter(r,w) function(){
for(;;) {
let {value, done} = await r.read()
await w.write(value)
if(done) {
break
}
}
w.clo... | 2021-08-03T23:14:27 | 2021-08-03T23:14:27 | {} | CONTRIBUTOR |
vuejs | core | 892,238,755 | 4,243 | Cherry | 🤦 Of course, thank you.
I had to tweak the encoding to ensure I was only writing `UInt8Array`s as per the error `This TransformStream is being used as a byte stream, but received a string on its writable side. If you wish to write a string, you'll probably want to explicitly UTF-8-encode it with TextEncoder.`, but ... | 2021-08-03T23:43:16 | 2021-08-03T23:43:16 | {} | CONTRIBUTOR |
vuejs | core | 892,453,594 | 4,244 | posva | You can use a regular `ref` as a workaround | 2021-08-04T08:03:41 | 2021-08-04T08:03:41 | {
"+1": 1
} | MEMBER |
vuejs | core | 893,219,956 | 4,259 | posva | 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).
---
Remember to use the [forum](http://forum.vuejs.org/) or the [Discord chat](https://vue-la... | 2021-08-05T07:06:35 | 2021-08-05T07:06:35 | {} | MEMBER |
vuejs | core | 893,283,821 | 4,253 | lidlanca | are you sure its not the error you get on the 4th click? | 2021-08-05T08:50:23 | 2021-08-05T08:50:23 | {} | CONTRIBUTOR |
vuejs | core | 893,757,972 | 4,260 | mariusa | Thank you, Thorsten, appreciate your time for finding the cause! | 2021-08-05T19:59:33 | 2021-08-05T19:59:33 | {} | NONE |
vuejs | core | 894,128,125 | 4,244 | Bigfish8 | I think the cause is the slot hint.
In this case,the outer Forward's slot hint is Stable,but the inner Forward's slot hint is Dynamic.When Child component updates,the outer Forward will not update because of the Stable hint.But component with dynamic slot does not track it own dependence.The inner Forward's re-render ... | 2021-08-06T09:20:38 | 2021-08-06T09:20:38 | {} | CONTRIBUTOR |
vuejs | core | 890,817,488 | 4,235 | lidlanca |
> This should go through an RFC in the rfcs repo.
agreed
> Not sure if `let providedDirectiveOptions = binding.instance.$.provides['someDirective']` is supported 🤔
not sure what you mean by "supported", the functionality will work, however it was just an example for possible use case for having a hook that... | 2021-08-02T08:10:18 | 2021-08-02T08:10:18 | {} | CONTRIBUTOR |
vuejs | core | 892,660,304 | 4,246 | sqal | I don't use it in my project (yet) I was just testing this feature in the playground and noticed it doesn't work with v-for, that's it. Other example. Shouldn't it always render count: 0 within the list? basically act like v-once?
```vue
<div v-for="id in 3" :key="id" v-memo="[true]">
count: {{ count }}
</div>
... | 2021-08-04T13:30:14 | 2021-08-04T13:30:57 | {} | CONTRIBUTOR |
vuejs | core | 893,218,325 | 4,252 | posva | The expected result is getting the HTML element in the `onMounted()` hook. [This is working properly](https://sfc.vuejs.org/#eyJBcHAudnVlIjoiPHRlbXBsYXRlPlxuICA8ZGl2IHJlZj1cIm9sZFJlZlwiPk9sZFJlZjwvZGl2Plx0XG4gIDxkaXYgcmVmPVwic3VnYXJSZWZcIj5TdWdhclJlZjwvZGl2Plx0XG48L3RlbXBsYXRlPlxuXG48c2NyaXB0IHNldHVwPlxuaW1wb3J0IHsgcmV... | 2021-08-05T07:03:42 | 2021-08-05T07:03:42 | {} | MEMBER |
vuejs | core | 893,746,431 | 4,255 | posva | > I am sure those will come up organically by the community
Not always but all my points still remain. For instance the use case you cited can already be handled with a customRef to defer triggers.
Anyway, we don't add new apis just because it's possible. If it was like that libraries size would've grow. | 2021-08-05T19:48:51 | 2021-08-05T19:48:51 | {} | MEMBER |
vuejs | core | 891,713,073 | 4,240 | AlexandraCaragata | I will create a PR with a fix for this. | 2021-08-03T10:03:17 | 2021-08-03T10:03:17 | {} | CONTRIBUTOR |
vuejs | core | 892,235,033 | 4,243 | lidlanca | ```js
pipeReaderToWriter(render.getReader(), writable.getWriter());
``` | 2021-08-03T23:34:12 | 2021-08-03T23:34:12 | {} | CONTRIBUTOR |
vuejs | core | 892,281,047 | 4,243 | Cherry | Agreed it should be documented _somewhere_, or the line at https://github.com/vuejs/vue-next/tree/master/packages/server-renderer?rgh-link-date=2021-08-03T23%3A43%3A16Z#rendertowebstream that says `// e.g. inside a Cloudflare Worker` simply removed, or linked somewhere else for more information, since it's not the simp... | 2021-08-04T01:10:49 | 2021-08-04T01:10:49 | {} | CONTRIBUTOR |
vuejs | core | 893,192,195 | 4,051 | jackhe16 | In fact, this problem has always existed, I was wondering if I can modify [the code here](https://github.com/vuejs/vue-next/blob/69344ff1ae724beb648c34ede8050b3b70ddf4b7/packages/runtime-core/src/componentOptions.ts#L304) as
```ts
- props: PropsOptions & ThisType<void>
+ props: PropsOptions
```
All the time, ... | 2021-08-05T06:09:25 | 2021-08-05T06:09:25 | {} | NONE |
vuejs | core | 893,279,726 | 4,253 | sqal | ~~I noticed another bug in your example. If you declare an array using const instead of let/var then following error occurs~~
~~`Uncaught (in promise): Cannot read property 'emitsOptions' of null`~~
| 2021-08-05T08:43:46 | 2021-08-05T08:57:37 | {} | CONTRIBUTOR |
vuejs | core | 893,554,539 | 4,260 | posva | 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). | 2021-08-05T15:31:59 | 2021-08-05T15:31:59 | {} | MEMBER |
vuejs | core | 893,580,418 | 4,260 | mariusa | I've spent 2h to narrow down the cause. The vite starter repro has only 1 library, `bootstrap-vue-3`
It works fine with vue 3.1.x
Only when changing to vue 3.2.0-beta.7 package.json, the error appears:
```
{
"name": "my-vue-app",
"version": "0.0.0",
"scripts": {
"dev": "vite",
... | 2021-08-05T16:07:39 | 2021-08-05T16:07:39 | {} | NONE |
vuejs | core | 894,562,903 | 4,261 | yyx990803 | A note: when importing SFCs as custom elements, the tooling needs to process the SFC styles as inlined CSS strings for shadow DOM injection.
This use case makes me realize that the current way SFC toolings handle custom elements (which imports the SFC directly as the custom element constructor) is flawed, since it m... | 2021-08-06T23:19:25 | 2021-08-06T23:19:25 | {} | MEMBER |
vuejs | core | 889,949,674 | 4,212 | lidlanca | ok, thanks for the feedback,
my rational was that toRaw at current state is used to bypass the reactivity tracking
not sure what is the likelihood of someone passing a ref or computed into toRaw for giggles and expecting it not to be raw.
also if rfcs are the appropriate and recommended way to request featu... | 2021-07-30T14:58:08 | 2021-07-30T15:00:53 | {} | CONTRIBUTOR |
vuejs | core | 892,645,080 | 4,246 | posva | What are you actually trying to achieve? Why would you use something that isn't used in the v-for in the `v-memo`. How are you checking that elements are updated in your current repro? | 2021-08-04T13:10:28 | 2021-08-04T13:10:28 | {} | MEMBER |
vuejs | core | 892,745,785 | 4,246 | sqal | [your example is also broken](https://sfc.vuejs.org/#eyJBcHAudnVlIjoiPHRlbXBsYXRlPlxuICA8YnV0dG9uIEBjbGljaz1cImNvdW50KytcIj5cbiAgICBpbmMge3sgY291bnQgfX1cbiAgPC9idXR0b24+XG4gIFxuICA8ZGl2IHYtbWVtbz1cIltjb3VudCA8IDUgPyB0cnVlIDogY291bnRdXCI+XG4gICAgY291bnQ6IHt7IGNvdW50IH19XG4gIDwvZGl2PlxuICBcbiAgPEl0ZW0gXG4gICAgICAgIHYtZm9... | 2021-08-04T15:17:14 | 2021-08-04T15:24:46 | {} | CONTRIBUTOR |
vuejs | core | 893,024,970 | 4,244 | robertmoura | Thanks @posva, I just used `shallowRef` as a mock `computed`. | 2021-08-04T22:50:37 | 2021-08-04T22:50:37 | {} | NONE |
vuejs | core | 893,645,197 | 4,255 | lidlanca | I have read the document, after you pointed out its existence.
The document only considers one actual use case for this api. ( v-for optimization )
and we yet to discover more useful uses for the api
https://github.com/vuejs/docs/blob/55505e758466a43e7e9c6e406dc2be4632604f71/src/api/directives.md
> The direc... | 2021-08-05T17:22:12 | 2021-08-05T17:22:12 | {} | CONTRIBUTOR |
vuejs | core | 893,787,979 | 4,255 | lidlanca | > Not always
where is the v-memo rfc, I am curious to see why there was no valuable feedback from the community.
there are many points we discussed some relevant some less, my main point that might have been lost in our informative discussion is that if I can do `v-memo=[...arr]` `v-memo=getMeMyArrayAndClone... | 2021-08-05T20:54:11 | 2021-08-05T20:54:11 | {} | CONTRIBUTOR |
vuejs | core | 890,344,620 | 4,219 | posva | 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). | 2021-07-31T12:57:13 | 2021-07-31T12:57:13 | {} | MEMBER |
vuejs | core | 890,594,760 | 4,235 | posva | This should go through an RFC in the rfcs repo.
Not sure if `let providedDirectiveOptions = binding.instance.$.provides['someDirective']` is supported 🤔 | 2021-08-01T22:11:05 | 2021-08-01T22:11:05 | {} | MEMBER |
vuejs | core | 890,428,828 | 4,220 | jmcooper | @posva Can you link to where in the docs you are referring to? I've been looking for a good explanation and I'd be willing to make a PR if I knew the right place. What you said about my suggestion not allowing a property named value makes sense though.
| 2021-08-01T01:26:51 | 2021-08-02T15:23:55 | {} | NONE |
vuejs | core | 892,786,867 | 4,247 | Bigfish8 | I think if support `<div v-bind="[propsA, propsB" />`, this should also be covered
`<div v-bind="array" /> // v-bind with array here`.
So I put the array check in runtime. | 2021-08-04T16:10:38 | 2021-08-04T16:10:38 | {
"+1": 1
} | CONTRIBUTOR |
vuejs | core | 894,131,535 | 4,267 | 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). | 2021-08-06T09:26:39 | 2021-08-06T09:26:39 | {} | MEMBER |
vuejs | core | 894,330,009 | 4,269 | posva | 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). | 2021-08-06T15:14:49 | 2021-08-06T15:14:49 | {} | MEMBER |
vuejs | core | 890,344,391 | 4,217 | posva | I would say you should stop it and create a new one. You can keep track of the parent if needed to attach the new scope to the parent. What is the actual use case of this? | 2021-07-31T12:55:24 | 2021-07-31T12:55:24 | {} | MEMBER |
vuejs | core | 892,583,127 | 4,002 | L-orz | Same issue.
3.1.0-beta.7 works.
3.1.0 don't work. | 2021-08-04T11:31:34 | 2021-08-04T11:31:34 | {} | NONE |
vuejs | core | 907,060,935 | 4,455 | LongJinCen | I have the same problem,Please give me a solution | 2021-08-27T09:24:09 | 2021-08-27T09:24:09 | {} | NONE |
vuejs | core | 907,542,424 | 4,462 | tangjinzhou | https://2x.antdv.com/components/slider/#components-slider-demo-basic

like this. we have a tooltip when click slider bar. when i click other point, tootip will hide, then show again. | 2021-08-28T01:04:04 | 2021-08-28T01:04:04 | {
"+1": 1
} | CONTRIBUTOR |
vuejs | core | 908,100,916 | 4,216 | cexbrayat | This is now rebased on top of #4472
Would be glad to hear your thoughts @yyx990803 as landing this would unblock the ecosystem to move to jest v27 | 2021-08-30T07:23:28 | 2021-08-30T07:23:28 | {} | MEMBER |
vuejs | core | 908,317,705 | 4,466 | webfansplz | @ygj6 @LongJinCen
i think there two problems after compiled:
1. props type still optional
2. the option type of defineComponent is not overloaded correctly
that‘s why still fails to compile after incorporating this PR.
| 2021-08-30T12:54:50 | 2021-08-30T12:54:50 | {} | MEMBER |
vuejs | core | 908,393,932 | 4,474 | vue-bot | Hello, thank you for taking time filling this issue!
However, we kindly ask you to use our [Issue Helper](https://new-issue.vuejs.org/?repo=vuejs/vue-next) when creating new issues, in order to ensure every issue provides the necessary information for us to investigate. This explains why your issue has been automatic... | 2021-08-30T14:32:11 | 2021-08-30T14:32:11 | {} | CONTRIBUTOR |
vuejs | core | 908,743,995 | 4,385 | Trinovantes | I think the problem is that the required css/js to be loaded from SSR would be highly coupled with your build system (e.g. webpack). Back in Vue 2, everybody just used webpack and the Vue2 SSR renderer itself required the webpack manifest file so it can return the proper js/css files. Vue 3 seems to be build-system agn... | 2021-08-30T22:20:11 | 2021-08-30T22:20:11 | {
"+1": 3
} | NONE |
vuejs | core | 909,427,285 | 4,478 | posva | 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). | 2021-08-31T17:13:09 | 2021-08-31T17:13:09 | {} | MEMBER |
vuejs | core | 910,033,277 | 4,480 | LinusBorg | This is expected and not related to `withDefault()` specifically.
Functions as default value will be executed to get the actual default value. This is useful/needed when the default value should be an fresh object for each component instance, for example.
The solution is to wrap the function in another function:... | 2021-09-01T07:53:39 | 2021-09-01T08:14:15 | {
"-1": 1
} | MEMBER |
vuejs | core | 906,845,333 | 4,449 | conanliuhuan | >
>
> ...and defining web components like this in a vue file is not really the intended workflow.
If I want to load some .vue file (from backends) in production environment, how to do that? | 2021-08-27T01:07:17 | 2021-08-27T01:07:17 | {} | NONE |
vuejs | core | 906,953,288 | 4,454 | edison1105 | seems not a vue core bug. | 2021-08-27T06:13:41 | 2021-08-27T06:13:41 | {} | MEMBER |
vuejs | core | 907,014,206 | 4,443 | posva | The repro is necessary to know if this is the right fix | 2021-08-27T08:09:55 | 2021-08-27T08:09:55 | {} | MEMBER |
vuejs | core | 907,049,292 | 4,457 | yangmi0829 | use "@vnodeBeforeUnmount" instead | 2021-08-27T09:06:30 | 2021-08-27T09:06:30 | {} | NONE |
vuejs | core | 907,984,188 | 4,433 | zhuchentong | > @orziz yes, same for me, seems the
>
> ```
> /// <reference types="vue/ref-macros" />
> ```
>
> in env.d.ts doesn't fix TS errors
same problem,the file is hasn't export ,but you can copy from https://github.com/vuejs/vue-next/blob/master/packages/vue/ref-macros.d.ts and create ref-macros.d.ts file in local | 2021-08-30T03:23:30 | 2021-08-30T03:23:30 | {} | NONE |
vuejs | core | 908,093,497 | 4,215 | cexbrayat | The PR landed in Jest, and was released as v27.1
PR #4472 updates vue-next to use this new version which fixes the issue, making this PR obsolete | 2021-08-30T07:12:52 | 2021-08-30T07:12:52 | {} | MEMBER |
vuejs | core | 909,462,852 | 4,478 | SatyanandKommoju | @posva i di see a github repo link above in the description. And the issue is during build step.
Could you please let us know why the bug is closed? | 2021-08-31T17:58:51 | 2021-08-31T17:58:51 | {} | NONE |
vuejs | core | 910,803,294 | 4,482 | yyx990803 | Looks like TS 4.4 breaks the build in two ways:
1. Caught errors are now `unknown` - this can be ignored by setting `"useUnknownInCatchVariables": false` in `tsconfig.json`
2. The type inference for `h` + return type of `defineComponent` seems to be broken. Spent some time looking into it but don't have a clear c... | 2021-09-01T21:50:17 | 2021-09-01T21:50:17 | {} | MEMBER |
vuejs | core | 906,326,519 | 4,423 | Bigfish8 | It seems caused by IDE plugin.Vetur doesn't support it now, you can try Volar instead. | 2021-08-26T11:35:09 | 2021-08-26T11:35:09 | {} | CONTRIBUTOR |
vuejs | core | 908,289,705 | 4,466 | LongJinCen | Did you run the demo ?。With the demo I wrote, I can confirm that the problem is that after I gave the default value, props was still optional, not required, that's the problem, so the problem fixed by the PR I think is the problem I encountered。 @webfansplz @ygj6
And my demo failed because of the following error, n... | 2021-08-30T12:10:56 | 2021-08-30T12:14:20 | {} | NONE |
vuejs | core | 908,389,277 | 4,473 | SelyankinFyodor | I have recreated a simplified model and in fact, for comparison, an external library is used inside which Vue proxies objects. | 2021-08-30T14:26:17 | 2021-08-30T14:26:17 | {} | NONE |
vuejs | core | 911,518,973 | 4,493 | 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). | 2021-09-02T10:38:19 | 2021-09-02T10:38:19 | {} | MEMBER |
vuejs | core | 906,955,275 | 4,454 | code-farmer-i | https://eslint.vuejs.org/user-guide/#compiler-macros-such-as-defineprops-and-defineemits-are-warned-by-no-undef-rule | 2021-08-27T06:18:45 | 2021-08-27T06:18:45 | {
"+1": 3
} | NONE |
vuejs | core | 907,660,926 | 4,464 | sqal | $vnode was always internal thing, it's better to just use refs to grab DOM element
```vue
<script setup>
import { ref, onMounted } from 'vue'
const root = ref(null)
onMounted(() => {
console.log(root.value.parentElement)
})
</script>
<template>
<div ref="root">
</div>
</templ... | 2021-08-28T17:39:01 | 2021-08-28T17:39:16 | {
"+1": 1,
"heart": 1,
"rocket": 1
} | CONTRIBUTOR |
vuejs | core | 907,692,724 | 4,344 | mszkb | Got the same issue. With vue 2 everything worked fine.
Adding my external library components with for example npm link and using <slot></slot> in my external component I'll get
`runtime-core.esm-bundler.js Uncaught TypeError: Cannot read property 'isCE' of null`
Versions of vue and any other dependencies are exac... | 2021-08-28T21:37:04 | 2021-08-28T21:37:04 | {} | NONE |
vuejs | core | 909,877,857 | 3,768 | edison1105 | > 请问这个问题解决了吗?当我将 resolveComponent 和 slot 一起使用的时候,ts 仍然提示我没有与此调用匹配的重载
没解决。 | 2021-09-01T04:39:39 | 2021-09-01T04:39:39 | {} | MEMBER |
vuejs | core | 910,238,036 | 4,480 | Bigfish8 | > Functions as default value will be executed to get the actual default value.
In fact,when prop type is Function,vue will not call the default value,see [code](https://github.com/vuejs/vue-next/blob/master/packages/runtime-core/src/componentProps.ts#L408).
```
interface Props {
fetchData?: () => string
}
/... | 2021-09-01T12:30:42 | 2021-09-01T12:35:23 | {} | CONTRIBUTOR |
vuejs | core | 910,356,321 | 4,481 | posva | You need to use an explicitely defined ref like this: https://sfc.vuejs.org/#eyJBcHAudnVlIjoiPHRlbXBsYXRlPlxuICA8aW5wdXRcbiAgICByZWY9XCJpbnB1dEVsXCJcbiAgICBAaW5wdXQ9XCJpbnB1dFwiXG4gIC8+XG48L3RlbXBsYXRlPlxuPHNjcmlwdD5cbiAgaW1wb3J0IHsgcmVmIH0gZnJvbSAndnVlJ1xuZXhwb3J0IGRlZmF1bHQge1xuICBuYW1lOiAnSW5wdXQnLFxuICBzZXR1cChwcm9... | 2021-09-01T14:45:24 | 2021-09-01T14:45:24 | {} | MEMBER |
vuejs | core | 910,795,498 | 4,433 | aphex | Seeing the same thing as @zct1989, no ref-macros anywhere in `node_modules` manually adding the file myself clears everything up. | 2021-09-01T21:43:29 | 2021-09-01T21:43:29 | {} | NONE |
vuejs | core | 906,457,872 | 4,453 | posva | Your types are different: the one with the interface make the props required while the one with the js object make them optional:
```js
defineProps({
hintMsg: { type: String, required: true },
iconName: String
})
```
---
Remember to use the [forum](http://forum.vuejs.org/) or the [Discord chat](https:... | 2021-08-26T14:21:42 | 2021-08-26T14:21:42 | {} | MEMBER |
vuejs | core | 907,607,060 | 4,463 | HomyeeKing | yes I forget to register alias in `vite.config.js`, that's all | 2021-08-28T10:32:03 | 2021-08-28T10:32:03 | {} | CONTRIBUTOR |
vuejs | core | 907,762,590 | 4,464 | sqal | @edison1105 why? vue docs recommends using ref | 2021-08-29T09:48:08 | 2021-08-29T09:48:08 | {} | CONTRIBUTOR |
vuejs | core | 907,797,711 | 4,464 | edison1105 | > @edison1105 why? vue docs recommends using ref
Oh sorry. I got it wrong. | 2021-08-29T14:08:28 | 2021-08-29T14:08:28 | {} | MEMBER |
vuejs | core | 908,016,781 | 4,470 | danranVm | Sorry, I forgot the `createRouter`. 😢 | 2021-08-30T04:28:51 | 2021-08-30T04:28:51 | {} | NONE |
vuejs | core | 908,772,540 | 4,385 | OskarLebuda | @Trinovantes
Your solutnion is fine, but IMO this is just a work around. This have to be part of CORE SSR in Vue3. Can someone explain how it even possible that in v2 this was a part of core code but in vue 3 noone thought about it? I saw Evan set label `feat: ssr` so I conclude from this that noone thought about it: ... | 2021-08-30T23:18:03 | 2021-08-30T23:20:43 | {
"+1": 3
} | NONE |
vuejs | core | 909,186,952 | 2,860 | mseele | Any progress in this topic? Sadly this is a showstopper to move our private libraries to vue 3, too. | 2021-08-31T12:22:42 | 2021-08-31T12:22:42 | {
"+1": 1
} | NONE |
vuejs | core | 909,858,778 | 4,478 | SatyanandKommoju | >
>
> @posva i di see a github repo link above in the description. And the issue is during build step.
> Could you please let us know why the bug is closed?
Please ignore. | 2021-09-01T04:02:50 | 2021-09-01T04:02:50 | {} | NONE |
vuejs | core | 910,723,908 | 4,486 | yyx990803 | @dependabot ignore this dependency | 2021-09-01T20:38:29 | 2021-09-01T20:38:29 | {} | MEMBER |
vuejs | core | 910,753,900 | 4,480 | yyx990803 | compiler-sfc infers the runtime prop type from your TS `Props` interface. When you use an imported type, compiler-sfc currently doesn't crawl external files and thus does not have the type information from the external. So it can only generate a loose runtime type - and because the runtime type is not `Function`, the d... | 2021-09-01T21:05:54 | 2021-09-01T21:05:54 | {
"+1": 1
} | MEMBER |
vuejs | core | 906,746,937 | 4,344 | chirpycora | Same here; I have not found a way to work around this issue. I made sure that both packages were using the same Vue version (matching versions and hashes in their `package-lock.json` files) and the `'isCE' of null` error is still persisting. I also tried [disabling symlink resolution for `node_modules`](https://cli.vue... | 2021-08-26T21:12:42 | 2021-08-26T21:12:42 | {
"+1": 3
} | NONE |
vuejs | core | 906,963,581 | 4,454 | edison1105 | 
| 2021-08-27T06:39:15 | 2021-08-27T06:39:15 | {
"heart": 1
} | MEMBER |
vuejs | core | 907,255,300 | 4,431 | edison1105 | @heeronchang
as a workaround
```javascript
<input v-model="msg" ref="'input'" />
``` | 2021-08-27T14:43:12 | 2021-08-27T14:43:12 | {} | MEMBER |
vuejs | core | 908,668,585 | 4,469 | juzerzarif | @posva That PR does seem like it would be a possible solution for what I'm looking for. But since that's using the `defineComponent` api, is there any guidance on being able to define components with generic props using the `<script setup>` syntax? | 2021-08-30T20:25:59 | 2021-08-30T20:25:59 | {} | NONE |
vuejs | core | 911,308,513 | 4,431 | ygj6 |
It does not seem to cover other scenes, there are still some problems like: [link with other bug](https://sfc.vuejs.org/#eyJBcHAudnVlIjoiPHNjcmlwdCBzZXR1cD5cbmltcG9ydCB7IHJlZiB9IGZyb20gJ3Z1ZSdcblxuY29uc3QgbXNnID0gcmVmKCdIZWxsbyBXb3JsZCEnKVxuY29uc3QgaW5wdXQgPSByZWYobnVsbClcbmNvbnN0IGlucHV0MiA9ICd0ZXN0J1xuPC9zY3JpcHQ+X... | 2021-09-02T07:23:55 | 2021-09-02T07:23:55 | {} | MEMBER |
vuejs | core | 906,327,608 | 4,423 | Nisgrak | I use Volar @Bigfish8. How an IDE plugin can affect the compilation of Vue? | 2021-08-26T11:36:21 | 2021-08-26T11:37:05 | {} | NONE |
vuejs | core | 906,672,699 | 4,344 | lonczynski | @fatawesome could you please tell us what was the solution? I am facing the same problem and I don't know how to not conflict the two distinct copies of the Vue package. Thanks | 2021-08-26T19:12:19 | 2021-08-26T19:12:19 | {
"+1": 4
} | NONE |
vuejs | core | 907,019,944 | 4,455 | code-farmer-i | Use withDefaults to define attributes in script setup, and the type inference is incorrect after compile-sfc is compiled into ts file.
in sfc file
<img width="400" src="https://user-images.githubusercontent.com/15082905/131095301-4ca0d5b8-6bd4-42bc-90c7-1cd02c9377f0.png">
in ts file
<img width="400" src="https://... | 2021-08-27T08:18:42 | 2021-08-27T08:18:42 | {} | NONE |
vuejs | core | 907,326,805 | 4,462 | posva | How does this happen in a real scenario? Setting the show to false right after exactly one tick of setting it to true seems quite strange.
Using more than a tick to set the value properly cancels the animation | 2021-08-27T16:31:33 | 2021-08-27T16:31:33 | {} | MEMBER |
vuejs | core | 908,228,175 | 3,152 | haoyun | In the [documentation](https://v3.vuejs.org/guide/reactivity-fundamentals.html#access-in-reactive-objects), there is an example:
```
const count = ref(0)
const state = reactive({
count
})
console.log(state.count) // 0
state.count = 1
console.log(count.value) // 1
const otherCount = ref(2)
state.c... | 2021-08-30T10:25:23 | 2021-08-30T10:25:23 | {} | NONE |
vuejs | core | 908,269,949 | 2,136 | shenliangv | > @yuxino How did you solve this problem? i have the same thing
>
> ```ts
> export const usePagination = <T>({ url }: { url: string }) => {
>
> const client = API
>
> const index = ref<T[]>([])
>
> const get = async (): Promise<IndexResponse<T>> => {
> const { data } = await client.get<IndexResp... | 2021-08-30T11:38:07 | 2021-08-30T11:38:07 | {
"+1": 17
} | NONE |
vuejs | core | 908,382,101 | 4,473 | posva | This is expected and documented: https://v3.vuejs.org/guide/reactivity.html#proxy-vs-original-identity | 2021-08-30T14:17:11 | 2021-08-30T14:17:11 | {} | MEMBER |
vuejs | core | 908,749,055 | 4,385 | weikinhuang | The main issue is I'm trying to move away from webpack to speed up development feedback cycles. In development, it shouldn't need to read the built file, as in client only mode, the application has access to CSS and JS that needs to be rendered, but does not in the SSR context to send back to the client. Unlike the exa... | 2021-08-30T22:30:21 | 2021-08-30T23:41:48 | {
"+1": 3
} | NONE |
vuejs | core | 910,097,661 | 4,480 | HoPGoldy | Thanks for your quick answer!
In general, this truly useful, when I need a `string[]` prop, ts will prompt me to set a function for default as a factory.
```typescript
interface Props {
tags: string[]
}
const props = withDefaults(defineProps<Props>(), {
tags: () => []
});
```
Along this line of th... | 2021-09-01T09:17:44 | 2021-09-01T09:17:44 | {} | NONE |
vuejs | core | 910,508,971 | 4,369 | henribru | @yyx990803 Thanks for working on that. I found a few edge cases where the variables still aren't accessible in the template. One is when the variable is exported: https://sfc.vuejs.org/#eyJBcHAudnVlIjoiPHNjcmlwdD5cbmV4cG9ydCBjb25zdCBiYXIgPSA1O1xuPC9zY3JpcHQ+XG5cbjxzY3JpcHQgc2V0dXA+XG5jb25zb2xlLmxvZyhcIkhlbGxvIHdvcmxkXC... | 2021-09-01T17:42:56 | 2021-09-01T17:43:17 | {} | NONE |
vuejs | core | 911,693,538 | 4,491 | yyx990803 | 没有重现只能靠猜,但很明显你项目里装的是 Vue 2...
1. 确保你创建项目的时候选对了选项
2. 大概率你选错了所以项目里装的是 vue 2(看 package.json 里的版本) | 2021-09-02T13:37:59 | 2021-09-02T13:37:59 | {} | MEMBER |
vuejs | core | 906,316,486 | 4,447 | laineus | @posva I have added for beforeUnmount too.
It passed properly on my local.
Could you check it again? | 2021-08-26T11:19:09 | 2021-08-26T11:19:09 | {} | CONTRIBUTOR |
vuejs | core | 906,954,530 | 4,016 | ruchenshanghai | why close this issue, I see it happens still | 2021-08-27T06:16:46 | 2021-08-27T08:06:34 | {} | NONE |
vuejs | core | 907,144,520 | 4,431 | heeronchang | em.. how can i fix this.. | 2021-08-27T11:51:11 | 2021-08-27T11:51:11 | {} | NONE |
vuejs | core | 908,402,221 | 4,475 | posva | Don't duplicate issues. If you want to suggest changes to docs, the repository is vuejs/docs | 2021-08-30T14:43:03 | 2021-08-30T14:43:03 | {} | MEMBER |
vuejs | core | 909,852,525 | 3,768 | PiscineMolitorPatel | 请问这个问题解决了吗?当我将 resolveComponent 和 slot 一起使用的时候,ts 仍然提示我没有与此调用匹配的重载 | 2021-09-01T03:49:09 | 2021-09-01T03:49:09 | {} | NONE |
vuejs | core | 911,530,649 | 4,493 | edison1105 | 如果你真的想要解决你的问题,需要提供一个最小可复现的 demo。
说实话,通过你的描述真的很难理解你的需求。talk is cheap, show me your code. | 2021-09-02T10:51:58 | 2021-09-02T10:52:12 | {} | MEMBER |
vuejs | core | 906,333,624 | 4,423 | Bigfish8 | Sorry, I was misleaded by the picture.It is indeed a compilation bug. | 2021-08-26T11:42:22 | 2021-08-26T11:42:22 | {} | CONTRIBUTOR |
vuejs | core | 907,005,271 | 4,456 | ygj6 | Duplicate of https://github.com/vuejs/vue-next/issues/4394 | 2021-08-27T07:55:15 | 2021-08-27T07:55:15 | {} | MEMBER |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.