Giter Site home page Giter Site logo

Comments (9)

tsmith023 avatar tsmith023 commented on May 23, 2024

Hi @josiahbryan, thanks for raising this. I'll look into it and get back to you!

from typescript-client.

tsmith023 avatar tsmith023 commented on May 23, 2024

@josiahbryan, I have setup and installed fresh versions of your Node version and the latest client on my Windows and Mac machines without issue! The current CI tests the package's functionality on ubuntu also.

If you are able, a more comprehensive MRE would be helpful to diagnose the problem you're facing.

from typescript-client.

josiahbryan avatar josiahbryan commented on May 23, 2024

Hmm, will attempt to reproduce again and isolate. Thanks for the quick response! WiIll get back to you in next ~3 hours or so

from typescript-client.

josiahbryan avatar josiahbryan commented on May 23, 2024

Looks like I needed to manually install deps graphql and graphql-request - is that expected that I have those installed in my project even though I don't use them, but this lib does?

from typescript-client.

tsmith023 avatar tsmith023 commented on May 23, 2024

No, that's quite unexpected since such dependencies should be private and are not peer dependencies! I only ran npm install weaviate-ts-client in my empty package.json file without issues πŸ€”

My guess is that you may have some machine-specific global configuration of npm specified in your .npmrc file that is affecting the installation process. If this is not the case, then we can troubleshoot otherwise if you replicate the installation process with verbose logging:

  1. Create a fresh package.json file by running npm init in an empty directory
  2. Run npm install --verbose weaviate-ts-client
  3. Inspect the terminal logs for any installation errors, pasting the log output here

from typescript-client.

zoranbabic avatar zoranbabic commented on May 23, 2024

I ran into a similar issue. We are using pnpm in our project, which doesn't install peer dependencies automatically.
The weaviate SDK package has a dependency to graphql-request which has a peer dependency to graphql. After installing weaviate-ts-client I received this warning:

WARN  Issues with peer dependencies found
packages/search
└─┬ weaviate-ts-client 1.5.0
  └─┬ graphql-request 5.2.0
    β”œβ”€β”€ βœ• missing peer graphql@"14 - 16"
    └─┬ @graphql-typed-document-node/core 3.2.0
      └── βœ• missing peer graphql@"^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0"
Peer dependencies that should be installed:
  graphql@">=14.0.0 <15.0.0 || >=15.0.0 <16.0.0 || >=16.0.0 <17.0.0"  

The SDK of course wouldn't work and complain: Error: Cannot find module 'graphql' - until I installed graphql manually.

from typescript-client.

malgamves avatar malgamves commented on May 23, 2024

I use yarn and had the same issue, installing graphql fixed it

The SDK of course wouldn't work and complain: Error: Cannot find module 'graphql' - until I installed graphql manually.

from typescript-client.

geminigeek avatar geminigeek commented on May 23, 2024

same issue version 2.0.0

from typescript-client.

j-d-carmichael avatar j-d-carmichael commented on May 23, 2024

Not quite the same but in the same area: #106

from typescript-client.

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.