Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modal breaks layout.tsx #9

Open
uixmat opened this issue Feb 8, 2024 · 0 comments
Open

Modal breaks layout.tsx #9

uixmat opened this issue Feb 8, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@uixmat
Copy link
Owner

uixmat commented Feb 8, 2024

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
@uixmat uixmat added the bug Something isn't working label Feb 8, 2024
@uixmat uixmat self-assigned this Feb 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant