question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

I can't export my query keys. (I'm following the official docs).

See original GitHub issue

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:

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:closed
  • Created a year ago
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
lecoqjacobcommented, Nov 10, 2022

@lukemorales My vscode stopped throwing errors on the update! Thanks!

0reactions
lukemoralescommented, Nov 10, 2022

@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 🙏🏻

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found