-
-
Notifications
You must be signed in to change notification settings - Fork 9k
Description
Vue version
^3.3.11
Link to minimal reproduction
https://stackblitz.com/edit/vitejs-vite-882jdu?file=src%2FApp.vue
Steps to reproduce
- Export a component from an index.ts file with a named export
- Import that component in another component using
import * as X from './some-index-file.ts' - Use the component
<template>
<X.Comp />
</template>What is expected?
The components to render
What is actually happening?
App.vue:7 Uncaught TypeError: Cannot read properties of undefined (reading 'Id')
at Proxy._sfc_render (App.vue:7:24)
at renderComponentRoot (runtime-core.esm-bundler.js:870:16)
at ReactiveEffect.componentUpdateFn [as fn] (runtime-core.esm-bundler.js:5972:46)
at ReactiveEffect.run (reactivity.esm-bundler.js:170:19)
at instance.update (runtime-core.esm-bundler.js:6103:16)
at setupRenderEffect (runtime-core.esm-bundler.js:6113:5)
at mountComponent (runtime-core.esm-bundler.js:5881:7)
at processComponent (runtime-core.esm-bundler.js:5835:9)
at patch (runtime-core.esm-bundler.js:5307:11)
at render2 (runtime-core.esm-bundler.js:6623:7)
System Info
No response
Any additional comments?
No response