Open melloware opened 3 years ago
@melloware So you are trying to use solr-node-client from the frontend and it used to work? Request is also node-only library, so it is interesting that it used to work. Undici is a new http client that we are using. I can try to implement fallback for frontend cases.
Exactly. I am using a React Application. I added your SOLR Client 0.10.0-RC8 and get the above compile time failures.
If I go back to your 0.9.0 my code works just fine.
I wonder if instead of fallback you should just use Axios so you have 1 lib and the code is cohesive and works on client or server?
@melloware undici is significantly (3-4 times) faster than axios, so I prefer using that for BE. FE is not a primary use-case for the lib.
HA is there a client side library as fast as undici? :)
Let me know if you find one :)
HA so I am wondering if FE is not a goal of this library should I fork it? To me its a great use case for FE as I have a dashboard hitting SOLR directly displaying information that is 20X faster than their current application which uses Python middleware. So I did a POC with solr-client and React JS and it delivered impressive results. :)
I could create a solr-browser-client
library using AXIOS which could support both?
I suspect that would be way too much duplicated code. Let me try the axios fallback approach this week.
Has there ever been continuation on this? I'm looking to use this lib on frontend too using nextjs
@riccardolardi no progress on this that I know of...
I have a Create React App and trying to use v 0.10.8 I get these compile issues: https://github.com/nodejs/undici/discussions/1057
If I back up to your 0.9.0 version everything works fine.
when I try
npm run build
i am getting this different error