vue-final-modal
vue-final-modal copied to clipboard
Wrong typescript exports
Version
vue-final-modal: 3.4.4 vue: 3.2.33
OS
Linux
Reproduction Link
https://codesandbox.io/s/icy-pine-fm35pi?file=/src/App.vue
Steps to reproduce
Try to import:
import { VueFinalModal } from 'vue-final-modal';
What is Expected?
It should be imported without TS warnings.
What is actually happening?
TS shows error, that this module not found

Default import doesn't work at all.
I can confirm this bug. Try importing single items without braces.
Solution
import VueFinalModal from 'vue-final-modal'
I can confirm this bug exists
I can confirm this bug. Try importing single items without braces.
Solution
import VueFinalModal from 'vue-final-modal'
I tried it, it doesn't work unfortunately, it shows the below warning and the modal doesn't work.
[Vue warn]: Invalid VNode type: undefined (undefined)
at <Ze modelValue=false onUpdate:modelValue=fn >
at <Modal>
at <App>
Any updates on this? Seems weird that its flagged as an error when it really isn't
@hunterliu1003 the PR that I created should fix this problem. It's possible that you could review it?
Released in v3.4.6