Skip to content

Modal breaks layout.tsx #9

@uixmat

Description

@uixmat

Including the modal in layout.tsx is breaking the build process after adding next-intl routing.

Build error

Failed to compile.
21:31:58.206 |  
21:31:58.206 | src/app/[locale]/layout.tsx
21:31:58.207 | Type error: Layout "src/app/[locale]/layout.tsx" has an invalid "default" export:
21:31:58.207 | Type "{ children: ReactNode; modal: ReactNode; params: { locale: string; }; }" is not valid.
21:31:58.207 |  
21:31:58.302 | error Command failed with exit code 1.
21:31:58.303 | info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
21:31:58.322 | Error: Command "yarn run build" exited with 1
21:31:58.993

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions