Skip to content

Can only build locally, with no changes to file #29221

@igorasilveira

Description

@igorasilveira

What version of Next.js are you using?

11.0.0

What version of Node.js are you using?

12.0.0

What browser are you using?

Safari, Chrome

What operating system are you using?

macOS

How are you deploying your application?

Vercel

Describe the Bug

I am trying to make a build on Vercel of some changes I made to my website. However, for some reason now, it will not build on Vercel. Only locally.

The file in question is the Layout.tsx file, which I've seen has given many people trouble in the past. But I have confirmed all file and component namings and they are correct. I've made several deploys before with the exact same Layout.tsx file and had no issues.

Local Build

Screenshot 2021-09-19 at 20 19 02

Vercel Build

Screenshot 2021-09-19 at 20 16 18

My file tree and index.tsx file

Screenshot 2021-09-19 at 20 20 01

Expected Behavior

Vercel Build should have the same behaviour as local build, which is successful.

To Reproduce

Screenshot 2021-09-19 at 20 20 01

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIssue was opened via the bug report template.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions