Closed rosensvv closed 2 years ago
I'm getting some kind of issue when trying to build compositor-module:
$ yarn generate:webfs $ openapi-generator-cli generate [[webfs] ./compositor-proxy-api.yaml] [main] INFO o.o.codegen.DefaultGenerator - Generating with dryRun=false [[webfs] ./compositor-proxy-api.yaml] [main] INFO o.o.codegen.DefaultGenerator - OpenAPI Generator: typescript-fetch (client) [[webfs] ./compositor-proxy-api.yaml] [main] INFO o.o.codegen.DefaultGenerator - Generator 'typescript-fetch' is considered stable. [[webfs] ./compositor-proxy-api.yaml] [main] INFO o.o.c.l.AbstractTypeScriptClientCodegen - Hint: Environment variable 'TS_POST_PROCESS_FILE' (optional) not defined. E.g. to format the source code, please try 'export TS_POST_PROCESS_FILE="/usr/local/bin/prettier --write"' (Linux/Mac) [[webfs] ./compositor-proxy-api.yaml] [main] INFO o.o.c.l.AbstractTypeScriptClientCodegen - Note: To enable file post-processing, 'enablePostProcessFile' must be set to `true` (--enable-post-process-file for CLI). [[webfs] ./compositor-proxy-api.yaml] [main] INFO o.o.codegen.TemplateManager - writing file /app/src/api/models/WebFD.ts [[webfs] ./compositor-proxy-api.yaml] [main] INFO o.o.codegen.TemplateManager - writing file /app/src/api/apis/WebfsApi.ts [[webfs] ./compositor-proxy-api.yaml] [main] INFO o.o.codegen.TemplateManager - writing file /app/src/api/index.ts [[webfs] ./compositor-proxy-api.yaml] [main] INFO o.o.codegen.TemplateManager - writing file /app/src/api/runtime.ts [[webfs] ./compositor-proxy-api.yaml] [main] INFO o.o.codegen.TemplateManager - writing file /app/src/api/apis/index.ts [[webfs] ./compositor-proxy-api.yaml] [main] INFO o.o.codegen.TemplateManager - writing file /app/src/api/models/index.ts [[webfs] ./compositor-proxy-api.yaml] [main] INFO o.o.codegen.TemplateManager - Skipped /app/src/api/.openapi-generator-ignore (Skipped by supportingFiles options supplied by user.) [[webfs] ./compositor-proxy-api.yaml] [main] INFO o.o.codegen.TemplateManager - writing file /app/src/api/.openapi-generator/VERSION [[webfs] ./compositor-proxy-api.yaml] [main] INFO o.o.codegen.TemplateManager - writing file /app/src/api/.openapi-generator/FILES [[webfs] ./compositor-proxy-api.yaml] ################################################################################ [[webfs] ./compositor-proxy-api.yaml] # Thanks for using OpenAPI Generator. # [[webfs] ./compositor-proxy-api.yaml] # Please consider donation to help us maintain this project ? # [[webfs] ./compositor-proxy-api.yaml] # https://opencollective.com/openapi_generator/donate # ################################################################################ [[webfs] ./compositor-proxy-api.yaml] java -jar "/app/node_modules/@openapitools/openapi-generator-cli/versions/5.4.0.jar" generate --input-spec="/app/compositor-proxy-api.yaml" --additional-properties="typescriptThreePlus=true,supportsES6=true,npmVersion=16.0.0" --output="src/api" --generator-name="typescript-fetch" exited with code 0 [webfs] ./compositor-proxy-api.yaml node_modules/@types/dom-webcodecs/webcodecs.generated.d.ts(414,6): error TS2300: Duplicate identifier 'VideoColorPrimaries'. node_modules/@types/dom-webcodecs/webcodecs.generated.d.ts(415,6): error TS2300: Duplicate identifier 'VideoMatrixCoefficients'. node_modules/@types/dom-webcodecs/webcodecs.generated.d.ts(417,6): error TS2300: Duplicate identifier 'VideoTransferCharacteristics'. node_modules/typescript/lib/lib.dom.d.ts(18316,6): error TS2300: Duplicate identifier 'VideoColorPrimaries'. node_modules/typescript/lib/lib.dom.d.ts(18318,6): error TS2300: Duplicate identifier 'VideoMatrixCoefficients'. node_modules/typescript/lib/lib.dom.d.ts(18319,6): error TS2300: Duplicate identifier 'VideoTransferCharacteristics'. error Command failed with exit code 2. info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command. The command '/bin/sh -c yarn install && yarn generate && yarn build' returned a non-zero code: 2 ERROR: Service 'compositor-module' failed to build : Build failed
It used to work before, I am using docker to make a compositor-module image with the following Dockerfile:
FROM node:16-buster-slim RUN apt-get update && apt-get dist-upgrade -y \ && apt-get install default-jre -y \ && apt-get autoremove -y \ && apt-get clean \ && rm -rf /var/lib/apt/lists/* WORKDIR /app COPY [".", "./"] WORKDIR /app RUN yarn install && yarn generate && yarn build CMD ["yarn", "demo"]
Looks like webcodecs type definition dependency is broken, I'll see if I can pin it to a working version.
I've pushed a fix to master, can you confirm it works for you?
It build now, thanks!
I'm getting some kind of issue when trying to build compositor-module:
It used to work before, I am using docker to make a compositor-module image with the following Dockerfile: