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

[INT] Fixed pkg not building with 2.0.0 #74

Merged
merged 3 commits into from
Jul 26, 2024

Conversation

eva-vashkevich
Copy link
Member

  • Changed how components are defined which was causing "RangeError: Maximum call stack size exceeded" error on pkg-build
  • Changed id for cluster class cards to handle duplicate names

export default (Vue as VueConstructor<
Vue & InstanceType<typeof CreateEditView>
>).extend({
export default {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can this use defineComponent instead? I believe we lose some vue component typing with a plain export default in components

@@ -307,7 +304,7 @@ export default (Vue as VueConstructor<
});
},
clickedType(obj: {[key:string]: any}) {
this.clusterClassObj = this.clusterClasses.find((x: ClusterClass) => x.metadata.name === obj.id);
this.clusterClassObj = this.clusterClasses.find((x: ClusterClass) => x.metadata.uid === obj.id);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When I try to run yarn build-pkg capi this line throws an error because uid is not defined in the ClusterClass interface.

Is there a reason to rely on metadata.uid instead of id here? The latter would be more consistent with dashboard code generally

Copy link
Member

@mantis-toboggan-md mantis-toboggan-md left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@eva-vashkevich eva-vashkevich merged commit 2c47e50 into rancher:main Jul 26, 2024
@eva-vashkevich eva-vashkevich deleted the shell-2.0.0 branch July 26, 2024 06:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants