Skip to content
This repository was archived by the owner on Apr 13, 2023. It is now read-only.
This repository was archived by the owner on Apr 13, 2023. It is now read-only.

Export 'graphql' is not defined #2886

Closed
@triketora

Description

@triketora

Intended outcome:

I'm trying to get my static assets build on Heroku to run. I'm using Node 10.8.0, npm 6.8.0, and Parcel to build.

My package.json dependencies include:
"apollo-boost": "^0.1.28",
"apollo-client": "^2.5.1",
"apollo-link-context": "^1.0.17",
"react-apollo": "^2.5.1"

This was all running fine on Heroku up until a few hours ago when I tried to push and the build failed. I don't think I've changed anything that would have caused the build to start failing, but at this point I'm willing to believe anything.

Actual outcome:

remote:        With `useBuiltIns` option, required direct setting of `corejs` option
remote:
remote:        🚨  /tmp/build_504c6bd7d9d8fa28ec87253d43d990d7/node_modules/react-apollo/react-apollo.esm.js:1044:72: Export 'graphql' is not defined (1044:72)
remote:          1042 | }
remote:          1043 |
remote:        > 1044 | export { ApolloConsumer, ApolloProvider, Query, Mutation, Subscription, graphql, withQuery, withMutation, withSubscription, withApollo, getDataFromTree, renderToStringWithData, compose, RenderPromises, getMarkupFromTree };
remote:               |                                                                        ^
remote:          1045 |
remote:          1046 |

How to reproduce the issue:

I cannot reproduce this problem locally unfortunately. Whenever I push my project to Heroku, it does consistently fail in my heroku-postbuild step that runs npm run parcel:build.

Version

  • apollo-client@^2.5.1
  • react-apollo@^2.5.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions