Closed Canoe-Silhouette closed 1 month ago
Do you know why it works with Umi4 and not Umi3? If there is a way we can make it work for you, a PR would be nice.
It sounds like it has something to do with Umi. If it's using a transpiler that could be part of the challenge. The library in which that function is being called (pino
and pino-pretty
) use ES modules, so that could be it.
Whilst I appreciate the repro project (thank you!), because the issue appears to be with Umi (or at least, related to it) that would fall outside of the reasonable scope of support here - i.e. the details of why it works with one framework and not another are not something you could expect a maintainer of Pact to review.
Do you know why it works with Umi4 and not Umi3? If there is a way we can make it work for you, a PR would be nice.
It sounds like it has something to do with Umi. If it's using a transpiler that could be part of the challenge. The library in which that function is being called (
pino
andpino-pretty
) use ES modules, so that could be it.Whilst I appreciate the repro project (thank you!), because the issue appears to be with Umi (or at least, related to it) that would fall outside of the reasonable scope of support here - i.e. the details of why it works with one framework and not another are not something you could expect a maintainer of Pact to review.
Thank you very much for your reply!!! I'm sorry I don't know the reason why it works with Umi4 and not Umi3. It seems like I need to ask this question in Umi. If I find something, I'll add it in the comments.
Closing due to inactivity.
TypeError: createColors is not a function (Umi3)
Software versions
Please provide at least OS and version of pact-js
Issue Checklist
Please confirm the following:
Expected behaviour
Run PactV3 tests in Umi(v3.5).
Actual behaviour
Our team use Umi(v3.5) as the front-end framework, but we can't run the pact tests.
We've tried to use Pact JS v9.11.1, this version can run properly in Umi(v3.5), but the matching rules in PactV2 can't meet our needs. So we want to use PactV3 in our project. In addition, Pact JS v12.1.0 can run in Umi4, but it's difficult for us to upgrade the old project.
Steps to reproduce
https://github.com/Canoe-Silhouette/pact-umi