packages/src/server.ts
imports the cookie
module but never declares it as a dependency directly
#131
Labels
bug
Something isn't working
Describe the bug
Normally when using this it mostly isn't an issue since
@sveltejs/kit
does. However, when you create a sveltekit application,@sveltejs/kit
is adevDependency
, whiletrpc-sveltekit
is a runtime dependency, meaning if you use something likepnpm filter
to prepare a docker container, thecookie
dependency is never recognised and as such is never bundled (unless it ends up being inherited by another package).Leading to the following error within the docker container:
To Reproduce
Expected behavior
It is expected that the cookie module be imported for use in
trpc-sveltekit
, however, since it is never declared within this repository it is never added to the virtual store bypnpm filter
when creating minimal containers.Additional context
I apologise for not being able to link to the repo where this is a problem as it is private code for a product, I'll try to keep an eye on this and provide any other required details where I can.
Though this should be a fairly straight-forward thing the way I see it.
Thanks 😄
The text was updated successfully, but these errors were encountered: