Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CI] Site Build Warnings: Page Templates only allow default export of a valid React component named exports of a page query #6279

Open
leecalcote opened this issue Mar 3, 2025 · 1 comment
Labels
framework/gatsby Gatsby related help wanted Extra attention is needed issue/willfix kind/chore Necessary task

Comments

@leecalcote
Copy link
Member

Current Behavior

warn
/Users/l/code/layer5/src/sections/Projects/Sistent/components/select/index.js
  227:1  warning  In page templates only a default export of a valid React component and the named exports of a page query,
 getServerData, Head or config are allowed.
        All other named exports will cause Fast Refresh to not preserve local component state and do a full refresh.

        Please move your other named exports to another file. Also make sure that you only export page queries that use the
 "graphql" tag from "gatsby".
  limited-exports-page-templates
  262:1  warning  In page templates only a default export of a valid React component and the named exports of a page query,
 getServerData, Head or config are allowed.
        All other named exports will cause Fast Refresh to not preserve local component state and do a full refresh.

        Please move your other named exports to another file. Also make sure that you only export page queries that use the
 "graphql" tag from "gatsby".
  limited-exports-page-templates

✖ 2 problems (0 errors, 2 warnings)

Desired Situation

Warnings resolved.


Contributor Resources and Handbook

The layer5.io website uses Gatsby, React, and GitHub Pages. Site content is found under the master branch.

Join the Layer5 Community by submitting your community member form.

@leecalcote leecalcote added framework/gatsby Gatsby related help wanted Extra attention is needed kind/chore Necessary task issue/willfix labels Mar 3, 2025
@Scharfcsh
Copy link

Hey, @leecalcote , Can I work on this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
framework/gatsby Gatsby related help wanted Extra attention is needed issue/willfix kind/chore Necessary task
Development

No branches or pull requests

2 participants