domjtalbot / nx-mesh

GraphQL Mesh support for Nx
https://www.npmjs.com/package/nx-mesh
MIT License
24 stars 1 forks source link

[BUG] (0 , se.createPackageJson) is not a function on "build-gateway" executor #175

Closed mnlbox closed 9 months ago

mnlbox commented 1 year ago

Hi,

I'm trying to use the build-gateway executor. It always generates all the mesh build files successfully but in the end, I'm getting an error like this:

...
πŸ’‘ πŸ•ΈοΈ  Mesh Generating artifacts
πŸ’‘ πŸ•ΈοΈ  Mesh Generating index file in TypeScript
πŸ’‘ πŸ•ΈοΈ  Mesh Writing index.ts for ESM to the disk.
πŸ’‘ πŸ•ΈοΈ  Mesh Writing index.ts for CJS to the disk.
πŸ’‘ πŸ•ΈοΈ  Mesh Cleanup
πŸ’‘ πŸ•ΈοΈ  Mesh Done! => /workspaces/my-project/graph/my-project/.mesh

Creating package.json...

 >  NX   (0 , se.createPackageJson) is not a function

TypeError: (0 , se.createPackageJson) is not a function
    at Qn (/workspaces/my-project/node_modules/.pnpm/nx-mesh@4.0.0_@graphql-mesh+cli@0.82.35_@types+node@20.2.3_cypress@12.2.0_eslint@8.15.0_graph_m5iwccy7kfnbcedxjgauqqaxsa/node_modules/nx-mesh/src/executors/build-gateway/build-gateway.js:11:21091)
    at Wi (/workspaces/my-project/node_modules/.pnpm/nx-mesh@4.0.0_@graphql-mesh+cli@0.82.35_@types+node@20.2.3_cypress@12.2.0_eslmy-projectint@8.15.0_graph_m5iwccy7kfnbcedxjgauqqaxsa/node_modules/nx-mesh/src/executors/build-gateway/build-gateway.js:11:22798)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)

 β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”

 >  NX   Running target build for project my-project failed

   Failed tasks:

   - my-project:build

And this is my build config in the project.json file:

"build": {
      "executor": "nx-mesh:build-gateway",
      "options": {
        "dir": "graph/my-project",
        "outputPath": "dist/graph/my-project"
      }
    },

It seems it's related to this part: https://github.com/domjtalbot/nx-mesh/blob/397cc741550cc552c6b24cc71aceed60093a1339/packages/nx-mesh/src/executors/build-gateway/build-gateway.ts#L47-L53

mnlbox commented 1 year ago

@domjtalbot Any idea about this issue?

github-actions[bot] commented 11 months ago

Warning

This issue is stale because it has been open for 60 days with no activity. πŸ’€

Either remove the stale label or leave a comment else this issue will be closed in 7 days.

mnlbox commented 11 months ago

@domjtalbot Are you still maintaining this repo?

github-actions[bot] commented 9 months ago

Warning

This issue is stale because it has been open for 60 days with no activity. πŸ’€

Either remove the stale label or leave a comment else this issue will be closed in 7 days.

github-actions[bot] commented 9 months ago

This issue was closed because it has been stale for 67 days with no activity.