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

Can't build crm, cms-v2 nor segment in dockerfile nor fresh git clone #1351

Open
djkato opened this issue May 15, 2024 · 0 comments
Open

Can't build crm, cms-v2 nor segment in dockerfile nor fresh git clone #1351

djkato opened this issue May 15, 2024 · 0 comments

Comments

@djkato
Copy link

djkato commented May 15, 2024

steps to reproduce:

  • git clone
  • pnpm i
  • pnpm turbo run build --filter="cms-v2" or crm, or segment.

error:

• Packages in scope: cms-v2
• Running build in 1 packages
• Remote caching disabled
cms-v2:build: cache miss, executing 1e2afd2d646cf296
cms-v2:build: 
cms-v2:build: 
cms-v2:build: > [email protected] build /home/djkato/Code PF/saleor-dockerize-all-apps/all_apps/apps/apps/cms-v
2
cms-v2:build: > pnpm generate && next build
cms-v2:build: 
cms-v2:build: 
cms-v2:build: > [email protected] generate /home/djkato/Code PF/saleor-dockerize-all-apps/all_apps/apps/apps/cm
s-v2
cms-v2:build: > graphql-codegen
cms-v2:build: 
✔ Parse Configuration
cms-v2:build: ⚠ Generate outputs
cms-v2:build:   ✔ Generate to generated/graphql.ts
cms-v2:build:   ❯ Generate to generated/schema.graphql
cms-v2:build:     ✔ Load GraphQL schemas
cms-v2:build:     ✔ Load GraphQL documents
cms-v2:build:     ✖ Cannot use GraphQLObjectType "AccountAddressCreate" from another module or realm.
cms-v2:build:       Ensure that there is only one instance of "graphql" in the node_modules
cms-v2:build:       directory. If different versions of "graphql" are the dependencies of other
cms-v2:build:       relied on modules, use "resolutions" to ensure only one version is installed.
cms-v2:build:       https://yarnpkg.com/en/docs/selective-version-resolutions
cms-v2:build:       Duplicate "graphql" modules cannot be used at the same time since different
cms-v2:build:       versions may have different capabilities and behavior. The data from one
cms-v2:build:       version used in the function from another could produce confusing and
cms-v2:build:       spurious results.
cms-v2:build:  ELIFECYCLE  Command failed with exit code 1.
cms-v2:build:  ELIFECYCLE  Command failed with exit code 1.
cms-v2:build: ERROR: command finished with error: command (/home/djkato/Code PF/saleor-dockerize-all-apps/
all_apps/apps/apps/cms-v2) /usr/local/bin/pnpm run build exited (1)
cms-v2#build: command (/home/djkato/Code PF/saleor-dockerize-all-apps/all_apps/apps/apps/cms-v2) /usr/loca
l/bin/pnpm run build exited (1)

 Tasks:    0 successful, 1 total
Cached:    0 cached, 1 total
  Time:    1.481s 
Failed:    cms-v2#build

 ERROR  run failed: command  exited (1)

dockerfile: https://github.com/djkato/saleor-dockerize-all-apps/blob/master/apps.Dockerfile
the dockerfile prunes the workspace with turbo before installing and building.
docker error:

 => ERROR [installer 9/9] RUN HOSTNAME="0.0.0.0" turbo run build --filter="crm"...                    2.3s 
------                                                                                                     
 > [installer 9/9] RUN HOSTNAME="0.0.0.0" turbo run build --filter="crm"...:                               
0.144                                                                                                      
0.144 Attention:                                                                                           
0.144 Turborepo now collects completely anonymous telemetry regarding usage.                               
0.144 This information is used to shape the Turborepo roadmap and prioritize features.                     
0.144 You can learn more, including how to opt-out if you'd not like to participate in this anonymous progr
am, by visiting the following URL:
0.144 https://turbo.build/repo/docs/telemetry
0.144 
0.166 • Packages in scope: @saleor/apps-shared, @saleor/apps-ui, crm, eslint-config-saleor
0.166 • Running build in 4 packages
0.166 • Remote caching disabled
0.177 crm:build: cache miss, executing f11050a4d7890f59
0.431 crm:build: 
0.431 crm:build: > [email protected] build /app/apps/crm
0.431 crm:build: > pnpm generate && next build
0.431 crm:build: 
0.677 crm:build: 
0.677 crm:build: > [email protected] generate /app/apps/crm
0.677 crm:build: > graphql-codegen
0.677 crm:build: 
1.163 crm:build: [STARTED] Parse Configuration
1.163 crm:build: [SUCCESS] Parse Configuration
1.164 crm:build: [STARTED] Generate outputs
1.165 crm:build: [STARTED] Generate to generated/graphql.ts
1.165 crm:build: [STARTED] Generate to generated/schema.graphql
1.165 crm:build: [STARTED] Load GraphQL schemas
1.165 crm:build: [STARTED] Load GraphQL schemas
1.427 crm:build: [SUCCESS] Load GraphQL schemas
1.427 crm:build: [SUCCESS] Load GraphQL schemas
1.427 crm:build: [STARTED] Load GraphQL documents
1.427 crm:build: [STARTED] Load GraphQL documents
1.592 crm:build: [SUCCESS] Load GraphQL documents
1.592 crm:build: [SUCCESS] Load GraphQL documents
1.592 crm:build: [STARTED] Generate
1.592 crm:build: [STARTED] Generate
1.679 crm:build: [FAILED] 
1.679 crm:build: [FAILED]         Unable to find template plugin matching 'schema-ast'
1.679 crm:build: [FAILED]         Install one of the following packages:
1.679 crm:build: [FAILED] 
1.679 crm:build: [FAILED]         
1.679 crm:build: [FAILED]         - @graphql-codegen/schema-ast
1.679 crm:build: [FAILED]         - @graphql-codegen/schema-ast-template
1.679 crm:build: [FAILED]         - @graphql-codegen/schema-ast-plugin
1.679 crm:build: [FAILED]         - graphql-codegen-schema-ast
1.679 crm:build: [FAILED]         - graphql-codegen-schema-ast-template
1.679 crm:build: [FAILED]         - graphql-codegen-schema-ast-plugin
1.679 crm:build: [FAILED]         - codegen-schema-ast
1.679 crm:build: [FAILED]         - codegen-schema-ast-template
1.679 crm:build: [FAILED]         - schema-ast
1.679 crm:build: [FAILED]       
1.816 crm:build: [SUCCESS] Generate
1.816 crm:build: [SUCCESS] Generate to generated/graphql.ts
1.816 crm:build: [SUCCESS] Generate outputs
1.832 crm:build:  ELIFECYCLE  Command failed with exit code 1.
1.841 crm:build:  ELIFECYCLE  Command failed with exit code 1.
1.847 crm:build: ERROR: command finished with error: command (/app/apps/crm) /usr/local/bin/pnpm run build
exited (1)
1.847 crm#build: command (/app/apps/crm) /usr/local/bin/pnpm run build exited (1)
1.847 
1.847  Tasks:    0 successful, 1 total
1.847 Cached:    0 cached, 1 total
1.847   Time:    1.702s 
1.847 Failed:    crm#build
1.847 
1.849  ERROR  run failed: command  exited (1)
------
Dockerfile:35
--------------------
  33 |     # Build the project
  34 |     COPY --from=builder /app/out/full/ .
  35 | >>> RUN HOSTNAME="0.0.0.0" turbo run build --filter="$APP_NAME"...
  36 |     
  37 |     
--------------------
ERROR: failed to solve: process "/bin/sh -c HOSTNAME=\"0.0.0.0\" turbo run build --filter=\"$APP_NAME\"...
 did not complete successfully: exit code: 1
[cargo-make] ERROR - Error while executing command, exit code: 1
[cargo-make] WARN - Build Failed.
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

1 participant