Comments (9)
Hi @josiahbryan, thanks for raising this. I'll look into it and get back to you!
from typescript-client.
@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.
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.
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.
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:
- Create a fresh
package.json
file by runningnpm init
in an empty directory - Run
npm install --verbose weaviate-ts-client
- Inspect the terminal logs for any installation errors, pasting the log output here
from typescript-client.
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.
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.
same issue version 2.0.0
from typescript-client.
Not quite the same but in the same area: #106
from typescript-client.
Related Issues (20)
- Please provide error codes to properly proccess different errors
- [FR] Fake WeaviateClient implementation
- Unable to Create a Property with moduleConfig HOT 2
- Could not find a declaration file for module 'graphql' HOT 1
- Cannot get generative search results and object ID together HOT 2
- Allow usage of text-embedding-3 models HOT 1
- Package subpath './weaviate' is not defined by "exports"
- [FR] passing filename to nearImage
- Typed class properties
- How to use array of text datatype with TS client?
- [FR] Ability to update schema configuration HOT 2
- Incorrect error message when updating the schema HOT 2
- [FR] client.schema.delete_all() method for feature parity with the Python client
- [FR] consistency level for client.data.checker()
- weaviate-ts-client library error on sveltekit HOT 3
- Connection fails when user-provided host URL contains the scheme
- update vector: fail with status 500 HOT 1
- realFetch.call is not a function HOT 1
- Unable to batch DELETE objects by id HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from typescript-client.