Skip to content

accept is not a function #1421

Answered by msujew
zrwsmd asked this question in Q&A
Mar 19, 2024 · 1 comments · 5 replies
Discussion options

You must be logged in to vote

The module hasn't been properly defined:

export function createStatemachineModule(
    context: StatemachineModuleContext
): Module<StatemachineServices, PartialLangiumServices & StatemachineAddedServices> {
    return {
        shared: () => context.shared,
        validation: {
-            StatemachineValidator: new StatemachineValidator()
+            StatemachineValidator: () => new StatemachineValidator()
        }
    };
}

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@zrwsmd
Comment options

@zrwsmd
Comment options

@msujew
Comment options

Answer selected by zrwsmd
@zrwsmd
Comment options

@zrwsmd
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants