Untitled

mail@pastecode.io avatar
unknown
plain_text
a month ago
7.3 kB
1
Indexable
Never
❯ cd oak-research-back
❯ ls
Dockerfile          database            favicon.png         package.json        src                 yarn.lock
README.md           dev.Dockerfile      node_modules        prod.Dockerfile     tsconfig.json
config              docker-compose.yaml package-lock.json   public              types
❯ docker-compose up --build -d
WARN[0000] /Users/gurvan/Documents/GitHub/oak-research/packages/oak-research-back/docker-compose.yaml: the attribute `version` is obsolete, it will be ignored, please remove it to avoid potential confusion 
[+] Building 41.7s (15/15) FINISHED                                                                     docker:desktop-linux
 => [strapi internal] load build definition from Dockerfile                                                             0.0s
 => => transferring dockerfile: 597B                                                                                    0.0s
 => [strapi internal] load metadata for docker.io/library/node:18-alpine                                                1.4s
 => [strapi auth] library/node:pull token for registry-1.docker.io                                                      0.0s
 => [strapi internal] load .dockerignore                                                                                0.0s
 => => transferring context: 159B                                                                                       0.0s
 => [strapi  1/10] FROM docker.io/library/node:18-alpine@sha256:17514b20acef0e79691285e7a59f3ae561f7a1702a9adc72a515ae  0.0s
 => [strapi internal] load build context                                                                                0.0s
 => => transferring context: 877.91kB                                                                                   0.0s
 => CACHED [strapi  2/10] RUN apk update && apk add --no-cache build-base gcc autoconf automake zlib-dev libpng-dev na  0.0s
 => CACHED [strapi  3/10] WORKDIR /opt/                                                                                 0.0s
 => [strapi  4/10] COPY package.json package-lock.json ./                                                               0.0s
 => [strapi  5/10] RUN npm install -g node-gyp                                                                          5.0s
 => [strapi  6/10] RUN npm config set fetch-retry-maxtimeout 600000 -g && npm install                                  30.6s
 => [strapi  7/10] WORKDIR /opt/app                                                                                     0.0s
 => [strapi  8/10] COPY . .                                                                                             0.0s
 => [strapi  9/10] RUN chown -R node:node /opt/app                                                                      0.2s
 => ERROR [strapi 10/10] RUN ["npm", "run", "build"]                                                                    4.3s
------
 > [strapi 10/10] RUN ["npm", "run", "build"]:
0.621 
0.621 > oak-research-back@0.1.0 build
0.621 > strapi build
0.621 
2.873 [WARN] [@strapi/strapi]: The NODE_ENV is not set to production. This may result in unexpected behavior.
2.898 - Compiling TS
4.275 src/api/author/controllers/author.ts:7:47 - error TS2345: Argument of type '"api::author.author"' is not assignable to parameter of type 'ContentType'.
4.275 
4.275 7 export default factories.createCoreController('api::author.author');
4.275                                                 ~~~~~~~~~~~~~~~~~~~~
4.275 src/api/author/routes/author.ts:7:43 - error TS2345: Argument of type '"api::author.author"' is not assignable to parameter of type 'ContentType'.
4.275 
4.275 7 export default factories.createCoreRouter('api::author.author');
4.275                                             ~~~~~~~~~~~~~~~~~~~~
4.275 src/api/author/services/author.ts:7:44 - error TS2345: Argument of type '"api::author.author"' is not assignable to parameter of type 'ContentType'.
4.275 
4.275 7 export default factories.createCoreService('api::author.author');
4.275                                              ~~~~~~~~~~~~~~~~~~~~
4.275 src/api/category/controllers/category.ts:7:47 - error TS2345: Argument of type '"api::category.category"' is not assignable to parameter of type 'ContentType'.
4.275 
4.275 7 export default factories.createCoreController('api::category.category');
4.275                                                 ~~~~~~~~~~~~~~~~~~~~~~~~
4.275 src/api/category/routes/category.ts:7:43 - error TS2345: Argument of type '"api::category.category"' is not assignable to parameter of type 'ContentType'.
4.275 
4.275 7 export default factories.createCoreRouter('api::category.category');
4.275                                             ~~~~~~~~~~~~~~~~~~~~~~~~
4.275 src/api/category/services/category.ts:7:44 - error TS2345: Argument of type '"api::category.category"' is not assignable to parameter of type 'ContentType'.
4.275 
4.275 7 export default factories.createCoreService('api::category.category');
4.275                                              ~~~~~~~~~~~~~~~~~~~~~~~~
4.275 src/api/cryptocurrency/controllers/cryptocurrency.ts:7:47 - error TS2345: Argument of type '"api::cryptocurrency.cryptocurrency"' is not assignable to parameter of type 'ContentType'.
4.275 
4.275 7 export default factories.createCoreController('api::cryptocurrency.cryptocurrency');
4.275                                                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4.275 src/api/cryptocurrency/routes/cryptocurrency.ts:7:43 - error TS2345: Argument of type '"api::cryptocurrency.cryptocurrency"' is not assignable to parameter of type 'ContentType'.
4.275 
4.275 7 export default factories.createCoreRouter('api::cryptocurrency.cryptocurrency');
4.275                                             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4.275 src/api/cryptocurrency/services/cryptocurrency.ts:7:44 - error TS2345: Argument of type '"api::cryptocurrency.cryptocurrency"' is not assignable to parameter of type 'ContentType'.
4.275 
4.275 7 export default factories.createCoreService('api::cryptocurrency.cryptocurrency');
4.275                                              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4.275 src/api/post/controllers/post.ts:7:47 - error TS2345: Argument of type '"api::post.post"' is not assignable to parameter of type 'ContentType'.
4.275 
4.275 7 export default factories.createCoreController('api::post.post');
4.275                                                 ~~~~~~~~~~~~~~~~
4.275 src/api/post/routes/post.ts:7:43 - error TS2345: Argument of type '"api::post.post"' is not assignable to parameter of type 'ContentType'.
4.275 
4.275 7 export default factories.createCoreRouter('api::post.post');
4.275                                             ~~~~~~~~~~~~~~~~
4.275 src/api/post/services/post.ts:7:44 - error TS2345: Argument of type '"api::post.post"' is not assignable to parameter of type 'ContentType'.
4.275 
4.275 7 export default factories.createCoreService('api::post.post');
4.275                                              ~~~~~~~~~~~~~~~~
4.275 
4.275 Found 12 error(s).
4.275 
------
failed to solve: process "npm run build" did not complete successfully: exit code: 1
~/Doc/Gi/oak-research/p/oak-research-back front-decrypt ❯  
Leave a Comment