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

[VUE] Incorrect prop types in Vue wrapper #4607

Closed
SergeyMaltsev opened this issue May 12, 2022 · 0 comments
Closed

[VUE] Incorrect prop types in Vue wrapper #4607

SergeyMaltsev opened this issue May 12, 2022 · 0 comments
Assignees
Labels
bug Something isn't working forum Issues from forum large-account Reported by large customer premium resolved Fixed but not yet released (available in the nightly builds) vue Vue framework integration wrappers Framework wrappers integration
Milestone

Comments

@SergeyMaltsev
Copy link
Contributor

SergeyMaltsev commented May 12, 2022

Forum post

Issue

It is not possible to set the taskModelClass or dependencyModelClass of Vue Project wrapper.
This leads to errors like

right-hand side of 'instanceof' is not an object

or

type of a prop isn't a constructor

This is related to wrong type definitions in wrapper

export default {
    props : {
        dependencyModelClass         : { type : typeof DependencyModel, default : undefined },
        dependencyStoreClass         : { type : typeof DependencyStore, default : undefined },
        taskStoreClass               : { type : typeof TaskStore, default : undefined },
        ... etc.
    }
};

Possible solutions

Use Function instead of typeof DependencyModel

@SergeyMaltsev SergeyMaltsev added bug Something isn't working vue Vue framework integration premium forum Issues from forum wrappers Framework wrappers integration large-account Reported by large customer labels May 12, 2022
@SergeyMaltsev SergeyMaltsev self-assigned this May 12, 2022
@matsbryntse matsbryntse added this to the 5.0.5 milestone May 12, 2022
@SergeyMaltsev SergeyMaltsev added in progress resolved Fixed but not yet released (available in the nightly builds) and removed in progress labels May 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working forum Issues from forum large-account Reported by large customer premium resolved Fixed but not yet released (available in the nightly builds) vue Vue framework integration wrappers Framework wrappers integration
Projects
None yet
Development

No branches or pull requests

2 participants