Skip to content

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

Closed
@leecalcote

Description

@leecalcote

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.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions