Skip to content

How to use graphql file loader with Next.js? #4397

Answered by ardatan
tettoffensive asked this question in Q&A
Discussion options

You must be logged in to vote

GraphQL File Loader and load-files are using File System directly but Next.js is bundled so they are not compatible. You should import files explicitly in the environments which are using bundlers.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@Urigo
Comment options

@ardatan
Comment options

@Urigo
Comment options

Answer selected by ardatan
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants