-
-
Notifications
You must be signed in to change notification settings - Fork 484
Closed
Labels
questionFurther information is requestedFurther information is requested
Description
Hii @johnsoncodehk ,
So recently while using volar in a project, I got an error saying Modifiers cannot appear here.ts(1184)
.
This came from the following code. Please have a look.
<script lang="ts" setup="props">
import { User } from '@/utils/models';
import { toRef } from 'vue';
declare const props: {
list: Array<User>;
};
export const userList = toRef(props, 'list'); // the error is shown right on top of the export keyword
</script>
<template>
<div class="chat-list">
<div v-for="u in userList" :key="u.id">
<span> {{ u.name }} </span>
</div>
</div>
</template>
<style lang="scss" scoped>
.chat-list {
}
</style>
I'm actually not sure if it's a problem with volar or vue. Also this is not throwing any error in dev server or while rendering. Please have a look!
Metadata
Metadata
Assignees
Labels
questionFurther information is requestedFurther information is requested