Skip to content

createUploadLink : TypeError: Object(...) is not a function #43

Closed
@capsule5

Description

@capsule5

Hi,

With this setup:

import { createUploadLink } from "apollo-upload-client"
...

const client = new ApolloClient({
  link: createUploadLink({ uri: "http://localhost:3002/graphql" }),
  cache: new InMemoryCache(),
})

I got an error : TypeError: Object(...) is not a function coming from webpack_require

But with:

import { createHttpLink } from "apollo-link-http"
...

const client = new ApolloClient({
  link: createHttpLink({ uri: "http://localhost:3002/graphql" }),
  cache: new InMemoryCache(),
})

It works

Do I miss something?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions