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

Log warnings to the console #81

Open
4 of 7 tasks
leonvogt opened this issue Oct 12, 2024 · 0 comments · Fixed by #84
Open
4 of 7 tasks

Log warnings to the console #81

leonvogt opened this issue Oct 12, 2024 · 0 comments · Fixed by #84
Labels
enhancement New feature or request

Comments

@leonvogt
Copy link
Owner

leonvogt commented Oct 12, 2024

Currently, we show the following warnings:

  • data-controller doesn't match any registered controller
  • Turbo Frame ID is not unique
  • Elements with data-turbo-permanent but no id (or no unique id)
  • Stimulus targets that aren't nested within the corresponding controller

Would be nice to have more warnings like:

  • Stimulus values that aren't defined on the controller element but instead on child element
  • Stimulus outlet selector doesn't match any elements on the page
  • Stimulus target isn't registered on the controller
@leonvogt leonvogt added the enhancement New feature or request label Oct 12, 2024
@leonvogt leonvogt changed the title Log warning to the console Log warnings to the console Oct 12, 2024
@leonvogt leonvogt mentioned this issue Oct 19, 2024
@leonvogt leonvogt linked a pull request Oct 20, 2024 that will close this issue
6 tasks
@leonvogt leonvogt reopened this Nov 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant