Skip to content

NPM run build error related to pong.css #19

@inkiltie

Description

@inkiltie

Describe the bug
When I run npm run build I get this:

> Build error occurred
Error: Build optimization failed: found page without a React Component as default export in 
pages/pong.css

See https://nextjs.org/docs/messages/page-without-valid-component for more info.

The obvious solution is to place pong.css content directly in _app.js, but according to above link, every file that is not exporting React component (export default '') should be placed outside /pages folder.

To Reproduce
Steps to reproduce the behavior:
Run npm run build

Desktop (please complete the following information):

  • OS: MacOS 11.4
  • Browser Chrome
  • Version 90.0.4430.212

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions