pixelmund / svelte-kit-cookie-session

⚒️ Encrypted "stateless" cookie sessions for SvelteKit
MIT License
184 stars 12 forks source link

Can't import with node #18

Closed plampila-teconer closed 3 years ago

plampila-teconer commented 3 years ago

While package works fine with SvelteKit/Vite, it can't be imported as an ESM package with node.

If I understand correctly, there are three changes to make this work:

My use case for this is handling a WebSocket connection outside the SvelteKit middleware using adapter-node.

pixelmund commented 3 years ago

Hey! Thanks for reporting this. I will try to get it resolved later today.

pixelmund commented 3 years ago

This should be fixed in 1.3.3, if you're still running into problems let me know.

plampila-teconer commented 3 years ago

Works great. Thank you for the super fast response!

During a svelte-kit build there is a warning that I don't think was there before:

[vite-plugin-svelte] The following packages did not export their package.json file so we could not check the "svelte" field. If you had difficulties importing svelte components from a package, then please contact the author and ask them to export the package.json file.

pixelmund commented 3 years ago

You're welcome! The warning should be gone in 1.3.3