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

docker-compose build failed #1441

Open
clarkzhanghao opened this issue Nov 28, 2024 · 7 comments
Open

docker-compose build failed #1441

clarkzhanghao opened this issue Nov 28, 2024 · 7 comments
Labels
bug Something isn't working

Comments

@clarkzhanghao
Copy link

System Info

aws linux
python 3.12.7
pandasai git clone the master branch

🐛 Describe the bug

docker-compose build exec failed,the error log:

[client 6/6] RUN npm run build:
1.017
1.017 > [email protected] build
1.017 > next build
1.017
1.669 Attention: Next.js now collects completely anonymous telemetry regarding usage.
1.670 This information is used to shape Next.js' roadmap and prioritize features.
1.670 You can learn more, including how to opt-out if you'd not like to participate in this anonymous program, by visiting the following URL:
1.670 https://nextjs.org/telemetry
1.670
1.738 ▲ Next.js 14.2.3
1.738
1.817 Creating an optimized production build ...
30.73 ✓ Compiled successfully
30.73 Skipping linting
30.73 Checking validity of types ...
35.68 Failed to compile.
35.68
35.68 ./components/card/index.tsx:14:7
35.68 Type error: Type '{ children: ReactNode | Element; }' is not assignable to type '{ children?: ReactNode; }'.
35.68 Types of property 'children' are incompatible.
35.68 Type 'ReactNode | Element' is not assignable to type 'ReactNode'.
35.68 Type 'Element' is not assignable to type 'ReactNode'.
35.68 Type 'Element' is missing the following properties from type 'ReactPortal': type, props, key
35.68
35.68 12 | {...rest}
35.68 13 | >
35.68 > 14 | <>{children}</>
35.68 | ^
35.68 15 |
35.68 16 | );
35.68 17 | }


failed to solve: process "/bin/sh -c npm run build" did not complete successfully: exit code: 1

@dosubot dosubot bot added the bug Something isn't working label Nov 28, 2024
Copy link

dosubot bot commented Nov 28, 2024

Hey @clarkzhanghao! I'm here to help you with any bugs, questions, or contributions you have. Let's squash those bugs together!

The error you're encountering is due to a type mismatch in the TypeScript definition of the children prop in the Card component. The children prop is defined as React.ReactNode | Element, but it seems that the expected type is React.ReactNode only. This discrepancy is causing the type error during the build process.

To resolve this issue, you can modify the TypeScript definition of the children prop in the Card component to match the expected type. Change the definition from:

children?: React.ReactNode | Element;

to:

children?: React.ReactNode;

This change should align the type definition with the expected ReactNode type and resolve the compilation error [1].

To continue talking to Dosu, mention @dosu.

@clarkzhanghao
Copy link
Author

Hey @clarkzhanghao! I'm here to help you with any bugs, questions, or contributions you have. Let's squash those bugs together!

The error you're encountering is due to a type mismatch in the TypeScript definition of the children prop in the Card component. The children prop is defined as React.ReactNode | Element, but it seems that the expected type is React.ReactNode only. This discrepancy is causing the type error during the build process.

To resolve this issue, you can modify the TypeScript definition of the children prop in the Card component to match the expected type. Change the definition from:

children?: React.ReactNode | Element;

to:

children?: React.ReactNode;

This change should align the type definition with the expected ReactNode type and resolve the compilation error [1].

To continue talking to Dosu, mention @dosu.

After fixing it in the above way, after starting the service, the front-end UI prompts:
-- Something went wrong fetching credentials, please refresh the page

@djuillard
Copy link

Hi,
have you managed to fix the issue ? I am facing the same...
thanks

@ahadda5
Copy link

ahadda5 commented Dec 16, 2024

still here.

@benred42
Copy link

+1 on this issue.

@draktheas
Copy link

draktheas commented Dec 16, 2024

+1, issue still there

@Chris-P-Bakin
Copy link

+1, facing same issue

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

6 participants