Skip to content

Added ts types for react-dom, react-gtm-module #4

Added ts types for react-dom, react-gtm-module

Added ts types for react-dom, react-gtm-module #4

Re-run triggered October 24, 2024 03:44
Status Failure
Total duration 1m 20s
Artifacts

viteToHeroku.yml

on: push
Fit to window
Zoom out
Zoom in

Annotations

1 error and 1 warning
build
Error: Command failed: heroku container:push web --app foodoasisvite › Warning: heroku update available from 9.3.1 to 9.3.2. #0 building with "default" instance using docker driver #1 [internal] load build definition from Dockerfile #1 transferring dockerfile: 1.38kB done #1 DONE 0.0s #2 [internal] load metadata for docker.io/library/node:lts-bullseye-slim #2 DONE 0.1s #3 [internal] load .dockerignore #3 transferring context: 114B done #3 DONE 0.0s #4 [clientbuilder 1/9] FROM docker.io/library/node:lts-bullseye-slim@sha256:9b558df8f10198fcd1f48cf344c55c4442c3446b8a9a69487523b3d890a4a59e #4 DONE 0.0s #5 [internal] load build context #5 transferring context: 32.39kB 0.0s done #5 DONE 0.0s #6 [clientbuilder 2/9] RUN mkdir /app #6 CACHED #7 [clientbuilder 5/9] COPY client/package-lock.json . #7 CACHED #8 [clientbuilder 3/9] WORKDIR /app #8 CACHED #9 [clientbuilder 4/9] COPY client/package.json . #9 CACHED #10 [clientbuilder 6/9] RUN npm ci --legacy-peer-deps #10 CACHED #11 [clientbuilder 7/9] COPY client . #11 CACHED #12 [stage-2 3/9] COPY ./server/package.json ./ #12 CACHED #13 [serverbuilder 7/13] COPY ./server/package.json ./ #13 CACHED #14 [stage-2 6/9] COPY --from=serverBuilder /usr/src/app/build ./ #14 CACHED #15 [serverbuilder 6/13] COPY ./server/tsconfig.json ./ #15 CACHED #16 [serverbuilder 13/13] RUN npm ci --quiet && npm run build #16 CACHED #17 [serverbuilder 3/13] COPY tsconfig.json ./ #17 CACHED #18 [serverbuilder 11/13] COPY ./server/app/ ./app #18 CACHED #19 [serverbuilder 10/13] COPY ./server/types/ ./types #19 CACHED #20 [stage-2 4/9] COPY ./server/package-lock.json ./ #20 CACHED #21 [serverbuilder 2/13] WORKDIR /usr/src #21 CACHED #22 [serverbuilder 12/13] COPY ./server/server.ts ./ #22 CACHED #23 [stage-2 5/9] RUN npm ci --quiet #23 CACHED #24 [serverbuilder 9/13] COPY ./server/middleware/ ./middleware #24 CACHED #25 [serverbuilder 8/13] COPY ./server/package-lock.json ./ #25 CACHED #26 [stage-2 2/9] WORKDIR /fola #26 CACHED #27 [serverbuilder 4/13] WORKDIR /usr/src/app #27 CACHED #28 [serverbuilder 5/13] RUN mkdir build #28 CACHED #29 [stage-2 7/9] COPY ./server/uploads ./uploads #29 CACHED #30 [clientbuilder 8/9] RUN npm run build #30 0.247 #30 0.247 > [email protected] build #30 0.247 > tsc && vite build #30 0.247 #30 9.597 src/index.tsx(2,28): error TS7016: Could not find a declaration file for module 'react-dom/client'. '/app/node_modules/react-dom/client.js' implicitly has an 'any' type. #30 9.597 Try `npm i --save-dev @types/react-dom` if it exists or add a new declaration (.d.ts) file containing `declare module 'react-dom/client';` #30 9.597 src/index.tsx(5,24): error TS7016: Could not find a declaration file for module 'react-gtm-module'. '/app/node_modules/react-gtm-module/dist/index.js' implicitly has an 'any' type. #30 9.597 Try `npm i --save-dev @types/react-gtm-module` if it exists or add a new declaration (.d.ts) file containing `declare module 'react-gtm-module';` #30 ERROR: process "/bin/sh -c npm run build" did not complete successfully: exit code: 2 ------ > [clientbuilder 8/9] RUN npm run build: 0.247 0.247 > [email protected] build 0.247 > tsc && vite build 0.247 9.597 src/index.tsx(2,28): error TS7016: Could not find a declaration file for module 'react-dom/client'. '/app/node_modules/react-dom/client.js' implicitly has an 'any' type. 9.597 Try `npm i --save-dev @types/react-dom` if it exists or add a new declaration (.d.ts) file containing `declare module 'react-dom/client';` 9.597 src/index.tsx(5,24): error TS7016: Could not find a declaration file for module 'react-gtm-module'. '/app/node_modules/react-gtm-module/dist/index.js' implicitly has an 'any' type. 9.597 Try `npm i --save-dev @types/react-gtm-module` if it exists or add a new declaration (.d.ts) file containing `declare module 'react-gtm-module';` ------ Dockerfile:13 -------------------- 11 | COPY client . 12 | 13 | >>> RUN npm run build 14 | RUN echo package.json 15 | -------------------- ERROR: failed to solve: process "
build
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3, akhileshns/[email protected]. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/