-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Error running svelte-package
#9097
Labels
Comments
Technically, it makes sense that this:
Would mean |
I don't think we should force people to put svelte in the top level of exports map. Alternative solution would be to also search subkeys and not print the message when it was found there |
dummdidumm
added
bug
Something isn't working
pkg:svelte-package
Issues related to svelte-package
labels
Feb 18, 2023
dummdidumm
added a commit
that referenced
this issue
Feb 18, 2023
5 tasks
dummdidumm
added a commit
that referenced
this issue
Feb 20, 2023
* fix: dont emit false positive export condition warning fixes #9097 * Update .changeset/friendly-pandas-sort.md Co-authored-by: Conduitry <git@chor.date> --------- Co-authored-by: Rich Harris <richard.a.harris@gmail.com> Co-authored-by: Conduitry <git@chor.date>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Describe the bug
From: #8922 (comment)
svelte-package
throwing a misleading error on misconfiguredpackage.json
The error advises me to add a
svelte
condition to myexports
. I had one. I really needed to add asvelte
condition at the top level.Reproduction
add
"exports"
key topackage.json
Run
svelte-package
Logs
No response
System Info
Severity
annoyance
Additional Information
pnpm create svelte
& choose library thenpackage.json
adds 2 keys that are important:The error is misleading, I had a
svelte
condition in myexports
. I really needed asvelte
condition at the top level.The text was updated successfully, but these errors were encountered: