Hello Prisma community! I love Prisma, but many pe...
# orm-help
k
Hello Prisma community! I love Prisma, but many people using Svelte Kit or Vite based frameworks seem to struggle with generated client is CJS module. I saw in GitHub someone said ESM support is near, but do we have somewhat rough ETA? or some fundamental difficulties?
n
Hey πŸ‘‹ Thank you for your kind words πŸ™Œ We don’t have a fixed timeline yet. Can you try doing this workaround till ESM is supported? This should unblock you in using Svelte Kit/Vite based frameworks
k
@Nurul Thanks for the quick responese! Yeah I've been using a similar workaround, but it stopped working since I upgrated to 3.12.
n
So it works as expected in 3.11.0 but starts breaking from 3.12.0, correct?
k
almost yes but I was using 3.2 before. I'm not sure which version in-beween breaks right now
n
Okay, do you have any public repo through which I could try to reproduce it?
k
Sure, here it is https://github.com/tnzk/kit-prisma/tree/fc40b680e2f5e7a7ee4cab95387c8f1f870e55dd But, I found the underlying issue and sent a pull request to fix it https://github.com/prisma/prisma/pull/12907 And new workaround based on this seems to be working without problem. So another question. In the PR I'm suggested to add ecosystem tests. Would it be required for the PR to be merged or even be reviewed? Or, could I understand it as just another opportunity to contribute?
n
Thank you so much for creating the PR πŸ™Œ Yes, tests are an integral part of our development so we would need to make sure that by this change we are not breaking any existing developer workflows. Once you can create an issue and we could setup ecosystem tests then we could definitely merge the PR.
k
Makes sense, sounds great way to make things reliable! I had created an issue, please tell me if any missing info or something? https://github.com/prisma/ecosystem-tests/issues/2690
πŸ‘ 1
n
Sure!