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.

Can't use Enum value after upgrading to v0.18.0 in a nextjs app

See original GitHub issue

within a nextjs app after upgrading to v0.18.0 according to the migration guide i’m getting Can't resolve 'graphql-let/__generated__/__types__'

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:6
  • Comments:15 (1 by maintainers)

github_iconTop GitHub Comments

7reactions
neamatmimcommented, May 30, 2021

Hi, import isn’t working for enum values like import { Product, SortOrder } from "graphql-let/__generated__/__types__"; is working until i use SortOrder.Desc as a value.

5reactions
zimmecommented, Jun 5, 2021

Maybe graphql-let/__generated__/__types__ could have an index.js file that exports the enums as well as the .d.ts files?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why my enum type wont work in Next.js project - Stack Overflow
One solution could be that you define the enum type first as shown below, export enum ISide { LEFT = 'left', RIGHT =...
Read more >
Migrating to Apollo Server 4 - Apollo GraphQL Docs
For example, if you use Apollo Server with Apollo Gateway, you should upgrade Apollo Gateway to at least v0.50.1 or any v2.x version...
Read more >
Node.js v19.3.0 Documentation
Enabling the feature; Configuring a package; Upgrading the global versions ... Using strings as inputs to cryptographic APIs; Legacy streams API (prior to ......
Read more >
graphql-modules - Bountysource
When using @ExecutionContext() in a provider I get the error: ... Cannot use typescript enums to resolve graphql enum types internal values anymore...
Read more >
it looks like you're trying to use typescript but don't have the ...
</form> html input only letters get input value on button click javascript ... yarn create react app typescript Can't bind to 'formGroup' since...
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