-
Notifications
You must be signed in to change notification settings - Fork 986
Improve error message when attributes have been defined after an embedded template #3812
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
Comments
Do you also have an |
@SteffenDE yes, I do, it is exactly the generated one. |
@SteffenDE important to mention that this is attempt to upgrade a Phoenix 1.7 to the 1.8rc3. Maybe the problem is related to it. |
You should either use |
@SteffenDE yes, you are right, I removed the |
- Enhanced error message in __before_compile__ hook to explain embed_templates vs function component conflicts - Enhanced error message in raise_if_function_already_defined! to provide clearer guidance - Added specific examples and actionable solutions for developers - Addresses issue #3812 by making error messages more helpful and informative The improved messages now explain: - What causes the conflict (embed_templates loaded before function components) - Concrete examples (app.html.heex vs def app function) - Clear solutions (choose one approach, not both) - Why the conflict occurs (embedded template loads first)
Uh oh!
There was an error while loading. Please reload this page.
LiveView generated application
The text was updated successfully, but these errors were encountered: