svelty-picker icon indicating copy to clipboard operation
svelty-picker copied to clipboard

svelty-picker/i18n - Cannot find module

Open farimir opened this issue 1 year ago • 4 comments

Using latest version of svelty-picker but seems there is an module / type issue...

image

image

farimir avatar Sep 24 '23 11:09 farimir

Works for me, even in svelte repl.

image

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.

mskocik avatar Sep 27 '23 10:09 mskocik

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.

bfovez avatar Oct 27 '23 11:10 bfovez

This is related somehow to using typescript... When I tried to google something, I found if I add moduleResolution to tsconfing.json it disappears.

image

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.

mskocik avatar Nov 14 '23 17:11 mskocik

yeah happened to me too i solved that by this import {en} from 'svelty-picker/dist/i18n/index';

RoxDevvv avatar Jan 15 '24 20:01 RoxDevvv