WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Docs: Next Integration - location of react components #174

@iurii-kyrylenko

Description

@iurii-kyrylenko

From documentation:

Step 7
Go to the src/pages folder and create a new, standalone file with name of your component (for example MyComponent.tsx).

This does't work in App Router mode. The production build (npm run build) fails with error:

 TypeError: Cannot read properties of undefined (reading 'forwardRef')

I think that correct place for the MyComponent.tsx is the src/components folder.

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