Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: getSimplePathPlans() fails with TypeError #3106

Closed
augjoh opened this issue Mar 3, 2022 · 2 comments · Fixed by #3113
Closed

Bug: getSimplePathPlans() fails with TypeError #3106

augjoh opened this issue Mar 3, 2022 · 2 comments · Fixed by #3113

Comments

@augjoh
Copy link

augjoh commented Mar 3, 2022

Description

After upgrading from 4.30.2 to 4.30.3 model.getSimplePathPlans() emits TypeError.

Expected result

Should run as 4.30.2

Actual result

TypeError: (0 , utils_1.keys) is not a function
    at getSimplePaths (/builds/platynum/certification-authority/flows/node_modules/@xstate/graph/lib/graph.js:316:49)
    at TestModel.getSimplePathPlans (/builds/platynum/certification-authority/flows/node_modules/@xstate/test/lib/index.js:157:54)
    at Suite.<anonymous> (/builds/platynum/certification-authority/flows/test/ca-acme.js:989:51)
[...]

Reproduction

https://gitlab.com/platynum/certification-authority/flows/-/blob/master/test/ca-acme.js#L989

Additional context

Code that triggers this issue and full output of mocha

@calvinchengx
Copy link

calvinchengx commented Mar 4, 2022

Yep. Breaks an attempted upgrade to 4.30.3 for me as well.

@davidkpiano
Copy link
Member

Added a fix in #3113 - sorry about that!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants