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

npm run build error #1

Open
ajeetraina opened this issue Nov 2, 2023 · 1 comment
Open

npm run build error #1

ajeetraina opened this issue Nov 2, 2023 · 1 comment

Comments

@ajeetraina
Copy link

 ls
Dockerfile          Makefile            backend             docker.svg          ui
LICENSE             README.md           docker-compose.yaml metadata.json
ajeetsraina  Docker-autopipelines  ➜ ( main)  ♥ 12:34  make build-extension
docker build --tag=joseluis99c/docker-autopipelines:latest .
[+] Building 7.9s (27/28)                                                                               docker:desktop-linux
 => [internal] load .dockerignore                                                                                       0.0s
 => => transferring context: 2B                                                                                         0.0s
 => [internal] load build definition from Dockerfile                                                                    0.0s
 => => transferring dockerfile: 1.59kB                                                                                  0.0s
 => [internal] load metadata for docker.io/library/alpine:latest                                                        3.3s
 => [internal] load metadata for docker.io/library/golang:1.19-alpine                                                   3.5s
 => [internal] load metadata for docker.io/library/node:18.12-alpine3.16                                                3.5s
 => [auth] library/alpine:pull token for registry-1.docker.io                                                           0.0s
 => [auth] library/golang:pull token for registry-1.docker.io                                                           0.0s
 => [auth] library/node:pull token for registry-1.docker.io                                                             0.0s
 => [internal] load build context                                                                                       0.1s
 => => transferring context: 3.82MB                                                                                     0.1s
 => [builder 1/6] FROM docker.io/library/golang:1.19-alpine@sha256:0ec0646e208ea58e5d29e558e39f2e59fccf39b7bda306cb53b  0.0s
 => [client-builder 1/7] FROM docker.io/library/node:18.12-alpine3.16@sha256:9eff44230b2fdcca57a73b8f908c8029e72d24dd0  0.0s
 => [stage-2 1/6] FROM docker.io/library/alpine@sha256:eece025e432126ce23f223450a0326fbebde39cdf496a85d8c016293fc85197  0.0s
 => CACHED [builder 2/6] WORKDIR /backend                                                                               0.0s
 => CACHED [builder 3/6] COPY backend/go.* .                                                                            0.0s
 => CACHED [builder 4/6] RUN --mount=type=cache,target=/go/pkg/mod     --mount=type=cache,target=/root/.cache/go-build  0.0s
 => CACHED [builder 5/6] COPY backend/. .                                                                               0.0s
 => CACHED [builder 6/6] RUN --mount=type=cache,target=/go/pkg/mod     --mount=type=cache,target=/root/.cache/go-build  0.0s
 => CACHED [stage-2 2/6] COPY --from=builder /backend/bin/service /                                                     0.0s
 => CACHED [stage-2 3/6] COPY docker-compose.yaml .                                                                     0.0s
 => CACHED [stage-2 4/6] COPY metadata.json .                                                                           0.0s
 => CACHED [stage-2 5/6] COPY docker.svg .                                                                              0.0s
 => CACHED [client-builder 2/7] WORKDIR /ui                                                                             0.0s
 => CACHED [client-builder 3/7] COPY ui/package.json /ui/package.json                                                   0.0s
 => CACHED [client-builder 4/7] COPY ui/package-lock.json /ui/package-lock.json                                         0.0s
 => CACHED [client-builder 5/7] RUN --mount=type=cache,target=/usr/src/app/.npm     npm set cache /usr/src/app/.npm &&  0.0s
 => CACHED [client-builder 6/7] COPY ui /ui                                                                             0.0s
 => ERROR [client-builder 7/7] RUN npm run build                                                                        4.3s
------
 > [client-builder 7/7] RUN npm run build:
0.495
0.495 > ui@0.1.0 build
0.495 > tsc && vite build
0.495
4.262 src/Cards/CSVDataset.tsx(29,36): error TS2698: Spread types may only be created from object types.
4.262 src/Cards/CSVDataset.tsx(35,28): error TS2345: Argument of type '{ field: string; headerName: string; width: number; }[] | undefined' is not assignable to parameter of type 'SetStateAction<never[]>'.
4.262   Type 'undefined' is not assignable to type 'SetStateAction<never[]>'.
4.262 src/Cards/CSVDataset.tsx(36,25): error TS2345: Argument of type 'any[]' is not assignable to parameter of type 'SetStateAction<never[]>'.
4.262   Type 'any[]' is not assignable to type 'never[]'.
4.262     Type 'any' is not assignable to type 'never'.
4.262 src/Cards/CSVDataset.tsx(55,13): error TS2322: Type '{ id: number; action: string; field: string; }' is not assignable to type 'never'.
4.262 src/Cards/CSVDataset.tsx(88,61): error TS2339: Property 'action' does not exist on type 'never'.
4.262 src/Cards/CSVDataset.tsx(88,85): error TS2339: Property 'field' does not exist on type 'never'.
4.262 src/Cards/CSVDataset.tsx(129,55): error TS2339: Property 'field' does not exist on type 'never'.
4.262 src/Cards/CSVDataset.tsx(129,68): error TS2339: Property 'headerName' does not exist on type 'never'.
4.262 src/Cards/CreateDataset.tsx(114,45): error TS2322: Type '{ onChange: (event: ChangeEvent<HTMLInputElement>) => void; type: "file"; directory: true; webkitdirectory: true; }' is not assignable to type 'IntrinsicAttributes & MUIStyledCommonProps<Theme> & ClassAttributes<HTMLInputElement> & InputHTMLAttributes<...>'.
4.262   Property 'directory' does not exist on type 'IntrinsicAttributes & MUIStyledCommonProps<Theme> & ClassAttributes<HTMLInputElement> & InputHTMLAttributes<...>'.
4.262 src/Cards/SummaryDataset.tsx(27,61): error TS2339: Property 'path' does not exist on type 'File'.
4.262 src/Cards/SummaryDataset.tsx(46,54): error TS2339: Property 'path' does not exist on type 'File'.
4.262 src/Datasets.tsx(51,25): error TS2783: 'preprocessing' is specified more than once, so this usage will be overwritten.
4.263 src/Datasets.tsx(95,94): error TS2339: Property 'path' does not exist on type 'File'.
4.278 npm notice
4.278 npm notice New major version of npm available! 8.19.2 -> 10.2.2
4.278 npm notice Changelog: <https://github.com/npm/cli/releases/tag/v10.2.2>
4.278 npm notice Run `npm install -g npm@10.2.2` to update!
4.278 npm notice
------
Dockerfile:23
--------------------
  21 |     # install
  22 |     COPY ui /ui
  23 | >>> RUN npm run build
  24 |
  25 |     FROM alpine
--------------------
ERROR: failed to solve: process "/bin/sh -c npm run build" did not complete successfully: exit code: 2

View build details: docker-desktop://dashboard/build/desktop-linux/desktop-linux/rx243w839ydh6bvpn4nbwemui
make: *** [build-extension] Error 1
@JoseLuisC99
Copy link
Owner

Thank you very much for being interested in the project. At the moment the project is still under construction and I have not yet released a complete product. I hope to have a minimum working version in two weeks.

However, thanks for pointing out the bug and I will fix it as soon as possible.

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

No branches or pull requests

2 participants