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

chore: error notice when using plain js in component script #519

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

nobkd
Copy link
Collaborator

@nobkd nobkd commented Mar 22, 2025

<footer>
  <script>
  console.log('hi')
  </script>
</footer>

image

Note

Hmmm. maybe that's a bit vague, because this can also always happen, if you have an error in the components's script.
checking for class field in the error message also won't work, because Node doesn't add this information
node: image

Please let me know, if you have better error messages in mind, that expand my message addition (last line), by mentioning that it could also be an error in their component's script.

@nobkd nobkd marked this pull request as draft March 22, 2025 23:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Failing to specify script as text/javascript results in cryptic error message
1 participant