Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

svelty-picker/i18n - Cannot find module #141

Open
farimir opened this issue Sep 24, 2023 · 4 comments
Open

svelty-picker/i18n - Cannot find module #141

farimir opened this issue Sep 24, 2023 · 4 comments
Labels
help wanted Extra attention is needed

Comments

@farimir
Copy link

farimir commented Sep 24, 2023

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

image

image

@mskocik
Copy link
Owner

mskocik commented Sep 27, 2023

Works for me, even in svelte repl.

image

Also export declaration is defined in package.json, so everything should be ok

"./i18n": {
"types": "./dist/i18n/index.d.ts",
"default": "./dist/i18n/index.js"

Some reproducible example would be needed.

@bfovez
Copy link

bfovez commented Oct 27, 2023

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.

@mskocik
Copy link
Owner

mskocik commented Nov 14, 2023

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 mskocik added help wanted Extra attention is needed and removed reproduction needed labels Nov 14, 2023
@RoxDevvv
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

4 participants