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

No exports condition for Sveltekit v2 (Deprecation Warning) #29

Open
Rar9 opened this issue Dec 16, 2023 · 8 comments
Open

No exports condition for Sveltekit v2 (Deprecation Warning) #29

Rar9 opened this issue Dec 16, 2023 · 8 comments

Comments

@Rar9
Copy link

Rar9 commented Dec 16, 2023

[vite-plugin-svelte] WARNING: The following packages have a svelte field in their package.json but no exports condition for svelte.

[email protected]

Please see https://github.com/sveltejs/vite-plugin-svelte/blob/main/docs/faq.md#missing-exports-condition for details.

@TonyGibson
Copy link

I've got this also, thanks for creating the request! Should be a quick fix :)

@Rar9
Copy link
Author

Rar9 commented Jan 1, 2024

For sveltekit 2 u need to add

"exports": {
".": {
"svelte": "./src/index.js"
}
},

@FranciscoHS19
Copy link

Is there any news on this fix? I love this package, it is a real time saver, but I'm starting to get a bit worried about using it going forward, as it does not seem like it is being maintained.

For sveltekit 2 u need to add

"exports": { ".": { "svelte": "./src/index.js" } },

@Rar9 I tried to do this fix myself, but I'm getting an error everywhere I'm using this package: "Cannot find module 'svelte-email' or its corresponding type declarations.". Any help would be appreciated.

@cmjoseph07
Copy link

@FranciscoHS19
You would not add the export to your project, to fix you would need to fork and make the update in the fork of svelte-email or you would need to do a PR. I have been using this for awhile so I am considering forking it and maintaining it but not sure maintainer is coming back or not.

@TonyGibson
Copy link

@Rar9 @cmjoseph07 exactly! Hey @carstenlebek love your work! Is adding this code something that is on the list? Would love to keep this repo going to avoid confusion, but if it's not maintained it's best that we fork it and build on the new version that is supported by SK2

@cmjoseph07
Copy link

@carstenlebek @Rar9 @FranciscoHS19

Hello all, I have decided to fork the project and maintain it as various people have been asking for updates on the project. I have updated the package and ARIA issues thus far and will see what the community wants in regards to future changes. I hope this is not stepping on the author's project as I love it and have enjoyed using it. If the author returns I would not mind archiving the fork either.

For now, if you want to have these two previously mentioned alerts disappear and work on other issues please check-out:

https://github.com/cmjoseph07/svelty-email

@Rar9
Copy link
Author

Rar9 commented Feb 6, 2024

Thanks @cmjoseph07, looking forward for your next version with tailwindcss support.

@polaroi8d
Copy link

I sent a message to the author to try to get access to maintain and fix the issues, instead of forking the repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants