Skip to content

docker-compose build failed #1441

Closed
Closed
@clarkzhanghao

Description

@clarkzhanghao

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions