The problem seems to be gone with @ionited/mask-svelte but not @ionited/mask.
import { Mask } from '@ionited/mask';
[vite] Named export 'Mask' not found.
The requested module '@ionited/mask' is a CommonJS module, which may not support all module.exports as named exports.
CommonJS modules can always be imported via the default export, for example using
import pkg from '@ionited/mask';
const {Mask} = pkg;
The workaround (import pkg from '@ionited/mask'; const {Mask} = pkg;) works this time. Up to you to decide if this need a "fix" or not.
Edit :
Looks like I've written too fast, import pkg from '@ionited/mask'; const {Mask} = pkg;still does not work!
Only import * as Mask from '@ionited/mask'; works.
Same thing as https://github.com/ionited/mask-svelte/issues/1.
The problem seems to be gone with
@ionited/mask-svelte
but not@ionited/mask
.The workaround (
import pkg from '@ionited/mask'; const {Mask} = pkg;
)works this time. Up to you to decide if this need a "fix" or not.Edit : Looks like I've written too fast,
import pkg from '@ionited/mask'; const {Mask} = pkg;
still does not work! Onlyimport * as Mask from '@ionited/mask';
works.