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: nuxt bridge minimal implementation not working #24

Open
Lexpeartha opened this issue Oct 1, 2022 · 2 comments
Open

bug: nuxt bridge minimal implementation not working #24

Lexpeartha opened this issue Oct 1, 2022 · 2 comments
Assignees
Labels
bug Something isn't working help wanted Extra attention is needed
Milestone

Comments

@Lexpeartha
Copy link
Owner

Your Environment

All Nuxt Bridge projects with minimal option enabled

Reproduction

No response

Describe the bug

I think the non fms gets imported on accident somehow, which makes the state machine defined with fms implementation incompatible with the type, and also throws an error at runtime. Requires closer inspecting, since I wasn't able to find actual issue in autoImports.ts so far

Additional context

Throws the following type error: Argument of type 'Machine<object, EventObject, { value: any; context: object; }>' is not assignable to parameter of type 'MaybeLazy<StateMachine<object, any, EventObject, { value: any; context: object; }, BaseActionObject, ServiceMap, ResolveTypegenMeta<TypegenDisabled, EventObject, BaseActionObject, ServiceMap>>>'

@Lexpeartha Lexpeartha added the bug Something isn't working label Oct 1, 2022
@Lexpeartha Lexpeartha self-assigned this Oct 2, 2022
@Lexpeartha Lexpeartha added this to the v1.0 milestone Oct 2, 2022
@Lexpeartha Lexpeartha added the help wanted Extra attention is needed label Oct 10, 2022
@Lexpeartha
Copy link
Owner Author

Workaround is to manually import createMachine from xstate-vue2/lib/fsm, where needed, which should override faulty auto-import

@Lexpeartha
Copy link
Owner Author

This might've been fixed in #30, although I'm not sure
If someone could test it out and tell the results here, it would be immensely helpful 👍🏽

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant