-
-
Notifications
You must be signed in to change notification settings - Fork 9k
Closed
Labels
🐞 bugSomething isn't workingSomething isn't workinghas workaroundA workaround has been found to avoid the problemA workaround has been found to avoid the problemscope: script-setup
Description
Vue version
3.4.3
Link to minimal reproduction
Steps to reproduce
<script setup lang="ts">
const { isMulti } = defineProps<{ isMulti?: boolean }>();
const model = defineModel({
get() {
// ⚠️ it works without destructuring -> props.isMulti ? [] : ''
return isMulti ? [] : '';
},
});
</script>What is expected?
Should compile component without error.
What is actually happening?
Compiler crashes with error
Error: Cannot split a chunk that has already been edited (6:13 – "defineModel({
get() {
return isMulti ? [] : '';
},
})")
System Info
No response
Any additional comments?
No response
Metadata
Metadata
Assignees
Labels
🐞 bugSomething isn't workingSomething isn't workinghas workaroundA workaround has been found to avoid the problemA workaround has been found to avoid the problemscope: script-setup