Skip to content

For a svelte package index.js group imports don't work anymore #4401

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

Closed
24jr opened this issue Mar 20, 2022 · 5 comments
Closed

For a svelte package index.js group imports don't work anymore #4401

24jr opened this issue Mar 20, 2022 · 5 comments
Labels
pkg:svelte-package Issues related to svelte-package

Comments

@24jr
Copy link

24jr commented Mar 20, 2022

Describe the bug

https://kit.svelte.dev/docs/packaging#publishing

This used to work before update a few weeks ago and stopped and still doesnt work

import { Foo } from 'your-library';

but this does

import Foo from 'your-library/Foo.svelte';

but easier to use first syntax for multiple imports

Don't believe much of anything changed except updating so I think the issue has to do with something in an update

Reproduction

make svelte package

npm run package
publish ./package --access public

import into another sveltekit project

Logs

No response

System Info

Latest svelte

Severity

annoyance

Additional Information

Alternative is fine but at some point would be nice

@benmccann benmccann added the pkg:svelte-package Issues related to svelte-package label Mar 21, 2022
@24jr
Copy link
Author

24jr commented Mar 23, 2022

this may have to do with other issue I am having #3473

@ignatiusmb
Copy link
Member

Please see #2263 (comment) or follow the issue template and provide a proper reproduction.

@24jr
Copy link
Author

24jr commented Mar 23, 2022

@ignatiusmb That link just shows u telling someone the basic usage of this which I had already done and as I said worked fine until updating to newer version but sure just close the issue. That solves the problem right...And if there is some issue with how I presented this enlighten me but bringing up the issue poorly to your standard is better than not bringing it up at all

@ignatiusmb
Copy link
Member

From the issue template:

A link to a repository, or a fork of https://node.new/sveltekit, that reproduces the issue. Explaining how to reproduce is generally not enough. It pushes the burden of creating a reproduction project onto a small set of volunteer maintainers and isn't scalable. If no reproduction is provided, the issue will be closed.

@24jr
Copy link
Author

24jr commented Mar 23, 2022

@ignatiusmb Ok well you are right that I am not setting up all that for someone and it would require whoever fixes these things to make an nmp package and idk how I make that easy for them and also don't desire to spend that much time doing all that as I am busy so if simply bringing up the valid issue without all that isnt good enough then I understand and will wait until one day someone else finds the problem and desires to create issue to your standard. I guess its a tradeoff of work to issue fixer or issue creator and you are right I am putting more on the fixer but thats just where I'm at

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

3 participants