Hello, I have a question about @ory/client. We wan...
# talk-kratos
c
Hello, I have a question about @ory/client. We want to implement this in our application setup which is based on open-wc.org. This uses Rollup for bundling. This only gives the error "Uncaught ReferenceError: exports is not defined" for the imports from @ory/client. When I try the same in a webpack setup it works fine. Why is this and is there a way to make it work with Rollup?
p
Hi @cool-hair-6204 I don't have much context about the problem, but maybe there is an issue with bundling the @ory/client with your application. I would exclude it from the bundle and keep it as a peer dependency.
c
Thanks for your response! That's right, it is something in the bundling. It seems rollup cannot import a commonJs module. Is there any way to transform the @ory/client to a ES6 module?
p
c
Unfortunately that plugin does not work due to this bug. Its still unsolved