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

Error on simple GraphQL handler with mesh start #4603

Closed
1 of 4 tasks
kantum opened this issue Sep 29, 2022 · 1 comment
Closed
1 of 4 tasks

Error on simple GraphQL handler with mesh start #4603

kantum opened this issue Sep 29, 2022 · 1 comment

Comments

@kantum
Copy link

kantum commented Sep 29, 2022

Issue workflow progress

Progress of the issue based on the Contributor Workflow

  • 1. The issue provides a reproduction available on Github, Stackblitz or CodeSandbox

  • 2. A failing test has been provided

  • 3. A local solution has been provided

  • 4. A pull request is pending review


Describe the bug

To Reproduce
Steps to reproduce the behavior:

https://codesandbox.io/s/staging-water-1sbvcw

  1. Set a minimal .meshrc.yaml with a GraphQL handler as described in the GraphQL handler documentation
sources:
  - name: SpaceX
    handler:
      graphql:
        endpoint: https://api.spacex.land/graphql/
  1. Run yarn install and yarn dev to see it working
  2. Run yarn build and yarn start to see the error
/sandbox/node_modules/@graphql-mesh/merger-bare/index.js:40
      Object.defineProperty(schema$1.extensions, 'sourceMap', {
             ^
TypeError: Cannot redefine property: sourceMap
  at Function.defineProperty (<anonymous>)
  at BareMerger.handleSingleRegularSource (/sandbox/node_modules/@graphql-mesh/merger-bare/index.js:40:16)
  at BareMerger.getUnifiedSchema (/sandbox/node_modules/@graphql-mesh/merger-bare/index.js:64:25)
  at Object.getMesh (/sandbox/node_modules/@graphql-mesh/runtime/index.

Expected behavior

To work like in dev mode
Environment:

  • OS: linux manjaro
  • @graphql-mesh/...:
  • NodeJS: 18.9.0

Additional context

@ardatan
Copy link
Owner

ardatan commented Mar 31, 2023

Seems to be fixed in the latest version. Let us know if it still doesn't work. So we can reopen the issue.

@ardatan ardatan closed this as completed Mar 31, 2023
This was referenced Apr 30, 2024
This was referenced May 7, 2024
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

2 participants