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 - Deploy failed with docker-compose according to the official manual #2641

Open
delapecci opened this issue Aug 14, 2024 · 2 comments
Open
Labels
bug Something isn't working

Comments

@delapecci
Copy link

Description

Deploy failed with docker-compose according to the official manual

Has the bug been reported before

No

Expected Behaviour

It should work and deploy successfully.

Actual Behaviour

Deploy process failed and got the following output on console:

....
#23 [ballerine-kyb-app dev 7/7] RUN npm run build
#23 0.174
#23 0.174 > @ballerine/[email protected] build
#23 0.174 > tsc && vite build
#23 0.174
#23 2.674 src/common/components/atoms/SelectInput/SelectInput.tsx(47,11): error TS2322: Type '{ children: (string | Element)[]; variant: string; role: "combobox"; className: string; }' is not assignable to type 'IntrinsicAttributes & ButtonProps & RefAttributes<HTMLButtonElement>'.
#23 2.674   Property 'variant' does not exist on type 'IntrinsicAttributes & ButtonProps & RefAttributes<HTMLButtonElement>'.
#23 2.674 src/components/organisms/UIRenderer/elements/ButtonUI/ButtonUIElement.tsx(11,13): error TS2322: Type '{ children: string; variant: string; onClick: () => void; disabled: boolean; }' is not assignable to type 'IntrinsicAttributes & ButtonProps & RefAttributes<HTMLButtonElement>'.
#23 2.674   Property 'variant' does not exist on type 'IntrinsicAttributes & ButtonProps & RefAttributes<HTMLButtonElement>'.
#23 2.674 src/components/organisms/UIRenderer/elements/SubmitButton/SubmitButton.tsx(96,7): error TS2322: Type '{ children: string; variant: string; onClick: () => void; disabled: boolean; "data-testid": string; }' is not assignable to type 'IntrinsicAttributes & ButtonProps & RefAttributes<HTMLButtonElement>'.
#23 2.674   Property 'variant' does not exist on type 'IntrinsicAttributes & ButtonProps & RefAttributes<HTMLButtonElement>'.
#23 2.674 src/pages/CollectionFlow/components/pages/Approved/Approved.tsx(34,21): error TS2322: Type '{ children: DefaultTFuncReturn; variant: string; onClick: () => void; }' is not assignable to type 'IntrinsicAttributes & ButtonProps & RefAttributes<HTMLButtonElement>'.
#23 2.674   Property 'variant' does not exist on type 'IntrinsicAttributes & ButtonProps & RefAttributes<HTMLButtonElement>'.
#23 2.674 src/pages/CollectionFlow/components/pages/Success/Success.tsx(34,21): error TS2322: Type '{ children: DefaultTFuncReturn; variant: string; onClick: () => void; }' is not assignable to type 'IntrinsicAttributes & ButtonProps & RefAttributes<HTMLButtonElement>'.
#23 2.674   Property 'variant' does not exist on type 'IntrinsicAttributes & ButtonProps & RefAttributes<HTMLButtonElement>'.
#23 ERROR: process "/bin/sh -c npm run build" did not complete successfully: exit code: 2

#19 [ballerine-case-managment dev 4/7] RUN npm install --legacy-peer-deps
#19 CANCELED

#22 [ballerine-workflows-dashboard dev 4/7] RUN npm install --legacy-peer-deps
#22 CANCELED
------
 > [ballerine-kyb-app dev 7/7] RUN npm run build:
2.674 src/common/components/atoms/SelectInput/SelectInput.tsx(47,11): error TS2322: Type '{ children: (string | Element)[]; variant: string; role: "combobox"; className: string; }' is not assignable to type 'IntrinsicAttributes & ButtonProps & RefAttributes<HTMLButtonElement>'.
2.674   Property 'variant' does not exist on type 'IntrinsicAttributes & ButtonProps & RefAttributes<HTMLButtonElement>'.
2.674 src/components/organisms/UIRenderer/elements/ButtonUI/ButtonUIElement.tsx(11,13): error TS2322: Type '{ children: string; variant: string; onClick: () => void; disabled: boolean; }' is not assignable to type 'IntrinsicAttributes & ButtonProps & RefAttributes<HTMLButtonElement>'.
2.674   Property 'variant' does not exist on type 'IntrinsicAttributes & ButtonProps & RefAttributes<HTMLButtonElement>'.
2.674 src/components/organisms/UIRenderer/elements/SubmitButton/SubmitButton.tsx(96,7): error TS2322: Type '{ children: string; variant: string; onClick: () => void; disabled: boolean; "data-testid": string; }' is not assignable to type 'IntrinsicAttributes & ButtonProps & RefAttributes<HTMLButtonElement>'.
2.674   Property 'variant' does not exist on type 'IntrinsicAttributes & ButtonProps & RefAttributes<HTMLButtonElement>'.
2.674 src/pages/CollectionFlow/components/pages/Approved/Approved.tsx(34,21): error TS2322: Type '{ children: DefaultTFuncReturn; variant: string; onClick: () => void; }' is not assignable to type 'IntrinsicAttributes & ButtonProps & RefAttributes<HTMLButtonElement>'.
2.674   Property 'variant' does not exist on type 'IntrinsicAttributes & ButtonProps & RefAttributes<HTMLButtonElement>'.
2.674 src/pages/CollectionFlow/components/pages/Success/Success.tsx(34,21): error TS2322: Type '{ children: DefaultTFuncReturn; variant: string; onClick: () => void; }' is not assignable to type 'IntrinsicAttributes & ButtonProps & RefAttributes<HTMLButtonElement>'.
2.674   Property 'variant' does not exist on type 'IntrinsicAttributes & ButtonProps & RefAttributes<HTMLButtonElement>'.
------
failed to solve: process "/bin/sh -c npm run build" did not complete successfully: exit code: 2

Environment

  • Node version: 18.17.1
  • on Mac M2 in arch x86

Steps to Reproduce

  1. Just run deploy command according the steps on the official website :
git clone https://github.com/ballerine-io/ballerine.git && cd ballerine

git checkout dev

docker-compose -f deploy/docker-compose-build.yml up -d
  1. Deploy process failed because of:
#23 [ballerine-kyb-app dev 7/7] RUN npm run build
#23 0.174
#23 0.174 > @ballerine/[email protected] build
#23 0.174 > tsc && vite build
#23 0.174
#23 2.674 src/common/components/atoms/SelectInput/SelectInput.tsx(47,11): error TS2322: Type '{ children: (string | Element)[]; variant: string; role: "combobox"; className: string; }' is not assignable to type 'IntrinsicAttributes & ButtonProps & RefAttributes<HTMLButtonElement>'.
#23 2.674   Property 'variant' does not exist on type 'IntrinsicAttributes & ButtonProps & RefAttributes<HTMLButtonElement>'.
#23 2.674 src/components/organisms/UIRenderer/elements/ButtonUI/ButtonUIElement.tsx(11,13): error TS2322: Type '{ children: string; variant: string; onClick: () => void; disabled: boolean; }' is not assignable to type 'IntrinsicAttributes & ButtonProps & RefAttributes<HTMLButtonElement>'.
#23 2.674   Property 'variant' does not exist on type 'IntrinsicAttributes & ButtonProps & RefAttributes<HTMLButtonElement>'.
#23 2.674 src/components/organisms/UIRenderer/elements/SubmitButton/SubmitButton.tsx(96,7): error TS2322: Type '{ children: string; variant: string; onClick: () => void; disabled: boolean; "data-testid": string; }' is not assignable to type 'IntrinsicAttributes & ButtonProps & RefAttributes<HTMLButtonElement>'.
#23 2.674   Property 'variant' does not exist on type 'IntrinsicAttributes & ButtonProps & RefAttributes<HTMLButtonElement>'.
#23 2.674 src/pages/CollectionFlow/components/pages/Approved/Approved.tsx(34,21): error TS2322: Type '{ children: DefaultTFuncReturn; variant: string; onClick: () => void; }' is not assignable to type 'IntrinsicAttributes & ButtonProps & RefAttributes<HTMLButtonElement>'.
#23 2.674   Property 'variant' does not exist on type 'IntrinsicAttributes & ButtonProps & RefAttributes<HTMLButtonElement>'.
#23 2.674 src/pages/CollectionFlow/components/pages/Success/Success.tsx(34,21): error TS2322: Type '{ children: DefaultTFuncReturn; variant: string; onClick: () => void; }' is not assignable to type 'IntrinsicAttributes & ButtonProps & RefAttributes<HTMLButtonElement>'.
#23 2.674   Property 'variant' does not exist on type 'IntrinsicAttributes & ButtonProps & RefAttributes<HTMLButtonElement>'.
#23 ERROR: process "/bin/sh -c npm run build" did not complete successfully: exit code: 2

#19 [ballerine-case-managment dev 4/7] RUN npm install --legacy-peer-deps
#19 CANCELED

#22 [ballerine-workflows-dashboard dev 4/7] RUN npm install --legacy-peer-deps
#22 CANCELED
------
 > [ballerine-kyb-app dev 7/7] RUN npm run build:
2.674 src/common/components/atoms/SelectInput/SelectInput.tsx(47,11): error TS2322: Type '{ children: (string | Element)[]; variant: string; role: "combobox"; className: string; }' is not assignable to type 'IntrinsicAttributes & ButtonProps & RefAttributes<HTMLButtonElement>'.
2.674   Property 'variant' does not exist on type 'IntrinsicAttributes & ButtonProps & RefAttributes<HTMLButtonElement>'.
2.674 src/components/organisms/UIRenderer/elements/ButtonUI/ButtonUIElement.tsx(11,13): error TS2322: Type '{ children: string; variant: string; onClick: () => void; disabled: boolean; }' is not assignable to type 'IntrinsicAttributes & ButtonProps & RefAttributes<HTMLButtonElement>'.
2.674   Property 'variant' does not exist on type 'IntrinsicAttributes & ButtonProps & RefAttributes<HTMLButtonElement>'.
2.674 src/components/organisms/UIRenderer/elements/SubmitButton/SubmitButton.tsx(96,7): error TS2322: Type '{ children: string; variant: string; onClick: () => void; disabled: boolean; "data-testid": string; }' is not assignable to type 'IntrinsicAttributes & ButtonProps & RefAttributes<HTMLButtonElement>'.
2.674   Property 'variant' does not exist on type 'IntrinsicAttributes & ButtonProps & RefAttributes<HTMLButtonElement>'.
2.674 src/pages/CollectionFlow/components/pages/Approved/Approved.tsx(34,21): error TS2322: Type '{ children: DefaultTFuncReturn; variant: string; onClick: () => void; }' is not assignable to type 'IntrinsicAttributes & ButtonProps & RefAttributes<HTMLButtonElement>'.
2.674   Property 'variant' does not exist on type 'IntrinsicAttributes & ButtonProps & RefAttributes<HTMLButtonElement>'.
2.674 src/pages/CollectionFlow/components/pages/Success/Success.tsx(34,21): error TS2322: Type '{ children: DefaultTFuncReturn; variant: string; onClick: () => void; }' is not assignable to type 'IntrinsicAttributes & ButtonProps & RefAttributes<HTMLButtonElement>'.
2.674   Property 'variant' does not exist on type 'IntrinsicAttributes & ButtonProps & RefAttributes<HTMLButtonElement>'.
------
failed to solve: process "/bin/sh -c npm run build" did not complete successfully: exit code: 2

Any possible solutions

Try change strict: false in tsconfig.eslint.json to avoid such warning, but failed... 😣
Need team kind help!

@delapecci delapecci added the bug Something isn't working label Aug 14, 2024
@Mithila-Panagoda
Copy link

Mithila-Panagoda commented Aug 28, 2024

I am also facing this error

@WFA-juliver
Copy link

I'm getting same error, any fixes?

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

No branches or pull requests

3 participants