svelty-picker
svelty-picker copied to clipboard
svelty-picker/i18n - Cannot find module
Using latest version of svelty-picker but seems there is an module / type issue...
Works for me, even in svelte repl.
Also export declaration is defined in package.json, so everything should be ok https://github.com/mskocik/svelty-picker/blob/60f81f4301eca9bc47cb638c229738a9d6dd7992/package.json#L22-L24
Some reproducible example would be needed.
Same problem here. Here is a reproducible example: https://github.com/bfovez/svelty-picker-bug Just npm i, then open the src\routes+page.svelte file, and see the issue.
This is related somehow to using typescript... When I tried to google something, I found if I add moduleResolution
to tsconfing.json
it disappears.
I have no idea if it breaks something else or not. But it seems it's related more to TS, not the lib itself. And if it's related to the lib, help is needed.
yeah happened to me too i solved that by this
import {en} from 'svelty-picker/dist/i18n/index';