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

svelte-package missing type definitions and type duplicates #13342

Open
Refzlund opened this issue Jan 18, 2025 · 0 comments
Open

svelte-package missing type definitions and type duplicates #13342

Refzlund opened this issue Jan 18, 2025 · 0 comments
Labels
pkg:svelte-package Issues related to svelte-package

Comments

@Refzlund
Copy link

Describe the bug

Image

If you create a component ex. Example.svelte and a svelte-file ex. example.svelte.ts it won't generate a example.svelte.d.ts causing type errors;

Image

If you create a class ex class Example and import that into a file with the same name Example.svelte ― it will have duplicate types after svelte-package

Image

Image

Reproduction

https://github.com/Refzlund/svelte-package-bug

Logs

System Info

System:
    OS: Windows 11 10.0.22631
    CPU: (12) x64 Intel(R) Core(TM) i7-8700K CPU @ 3.70GHz
    Memory: 10.37 GB / 31.93 GB
  Binaries:
    Node: 20.17.0 - C:\Program Files\nodejs\node.EXE
    npm: 10.8.2 - C:\Program Files\nodejs\npm.CMD
    pnpm: 9.15.1 - C:\Program Files\nodejs\pnpm.CMD
    bun: 1.1.43 - ~\.bun\bin\bun.EXE
  Browsers: {}
  npmPackages:
    @sveltejs/adapter-auto: ^4.0.0 => 4.0.0
    @sveltejs/kit: ^2.0.0 => 2.16.0
    @sveltejs/package: ^2.0.0 => 2.3.7
    @sveltejs/vite-plugin-svelte: ^4.0.0 => 4.0.4
    svelte: ^5.0.0 => 5.19.0
    vite: ^5.4.11 => 5.4.11

Severity

annoyance

Additional Information

1st needs (perhaps) to be case-sensitive when checking if file exists.

2nd I think might inquire a warning, as I did do local testing on the library with no issues, published it, only for it to be "unusable" when I put it into use in a different project (ex. svelte-tably).

(Which is a shame, because svelte-tably is my hackathon entry and I cannot make changes to it🤣)

@eltigerchino eltigerchino added the pkg:svelte-package Issues related to svelte-package label Jan 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pkg:svelte-package Issues related to svelte-package
Projects
None yet
Development

No branches or pull requests

2 participants