Open shadiramadan opened 3 months ago
Possibly related #1292
Possibly related 1292
That touches the same part of the code, but the use case is very different.
Implementing #1458 is certainly part of the solution, but I'm afraid that will not be enough to avoid the build error people are seeing when bundling the client.
@mjameswh Do you know how to work around this error in the temporal client or is it unavoidable at this time?
What are you really trying to do?
I'm trying to build / run a Next.js application without any warnings or errors. I am only using the @temporalio/client to be able to Signal workflows.
Describe the bug
I have a
server-only
file that imports the client:The client is used in some server side logic. When running next as a build or in dev mode (and loading a page that references the import). I get the following error:
Minimal Reproduction
Load the temporal client on the server side.
Environment/Versions
Additional context
My signal workflow logic works fine. The error also occurs in a linux based docker image.