GithubHelp home page GithubHelp logo

Comments (5)

jbaxleyiii avatar jbaxleyiii commented on May 3, 2024 1

This is removed in the new version!

from apollo-link.

Aetherall avatar Aetherall commented on May 3, 2024

Same error here

from apollo-link.

slightlytyler avatar slightlytyler commented on May 3, 2024

@PCreations @Aetherall don't use apollo-link-core. instead install [email protected] directly and import from the there instead. the upgrade docs need to be updated to reflect this

from apollo-link.

PCreations avatar PCreations commented on May 3, 2024

@slightlytyler It doesn't change anything for me. Look at the repos I linked above, I updateed the dependency but still the same problem. Maybe It has something to do with the way I bundle the package with rollup ?

from apollo-link.

PCreations avatar PCreations commented on May 3, 2024

Ok I found the issue I think. Using instanceof is not safe, and considered a code smell and harmfull. We should favor duck typing instead. instanceof can be buggy when dependencies are not correctly linked together and ends up being "loaded" twice (even if it's the same version). This can happen when linking a package when developping locally. That's what I did with a yarn link command. Publishing the package to npm solved the issue but we should definitively avoid using instanceof I think.

from apollo-link.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.