I can't export my query keys. (I'm following the official docs).
See original GitHub issueH! 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:
import { createQueryKeyStore } from "@lukemorales/query-key-factory";
export const userQueries = createQueryKeyStore({ <<< error in this line.
user: { me: null },
});
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?
Issue Analytics
- State:
- Created a year ago
- Comments:10 (5 by maintainers)
Top Results From Across the Web
SQL Server Management Studio - Create queries, Export, Import
SSMS has import and export tools. I recommend installing SSMS and reading the official docs to learn the basics.
Read more >Common Issues with the SQL Server Import and Export Wizard
The SQL Server Import and Export Wizard is a useful tool for copying data from one data source (e.g. a SQL Server database...
Read more >Chapter 3. Data, Tables, and Database Design - O'Reilly
In the database window, click Queries → Create Query in Design View, and put “Is Null” in the Criteria line. Then convert the...
Read more >Typescript ReferenceError: exports is not defined
I have module: amd, not module: commonjs, and I have this line in my transpiled .js file. – pabrams. Apr 5, 2019 at...
Read more >Export Amazon DynamoDB Table Data to Your Data Lake in ...
After requesting an export, you'll have to wait until the ExportStatus is “COMPLETED”. aws dynamodb list-exports { "ExportSummaries": [ { " ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@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 🙏🏻