Closed InNickF closed 1 year ago
I am hitting the same wall. I believe QueryFunctionContext
needs to be exported with the lib
Interesting.... I didn't experience that with while testing before the v1.0 release. I'll investigate and provide a fix @InNickF @lecoqjacob
Let me know if you need help testing a fix or patch. This started happening on my end whenever I upgraded to 1.0.0+
@lecoqjacob can you try providing a reproduction in a codesandbox?
Hi! @lukemorales, sure: https://codesandbox.io/s/immutable-bird-7j8lxq?file=/queries/user.ts
Thanks for the repro @InNickF, I'm taking a look at the issue
@InNickF @lecoqjacob sorry it took some time, I needed to figure some things out for the CI that was publishing the wrong build but version 1.0.3 is published with the fix for this
@lukemorales, it looks good, but now I have another kind of error in the same line:
The inferred type of this node exceeds the maximum length the compiler will serialize. An explicit type annotation is needed.
By now I just disabled in my tsconfig the declaration option to hide the error, but I think this is other error, must I create a new issue?
@lukemorales My vscode stopped throwing errors on the update! Thanks!
@InNickF could you create a new issue then and let's track that specific error. Also, I'd appreciate if you could provide an updated reproduction on that issue with what introduced the new error 🙏🏻
H! I'm trying to use the library (v1.0.0 and v1.0.1) but I got this error with a simple implementation:
Exported variable 'userQueries' has or is using name 'QueryFunctionContext' from external module ".../node_modules/@lukemorales/query-key-factory/dist/index" but cannot be named. ts(4023)
Code:
Literally that's all my code, if I do not export it, all works fine and I can use TanStack Query without problems.
What am I doing wrong?