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

Debugger dependency order #533

Open
mdesco-crgl opened this issue Apr 12, 2024 · 0 comments
Open

Debugger dependency order #533

mdesco-crgl opened this issue Apr 12, 2024 · 0 comments

Comments

@mdesco-crgl
Copy link

I am rather confused on how to get the hdb debugger working due to the dependency ordering.

I am trying to use a defined behavior in place of using javascript, and want to step through it to make sure my syntax is correct.

The behaviour docs mention that behavour files ._hs must be defined above the cdn hyperscript script tag.

Likewise, the hdb docs says hdb.js must be included along with the main distribution. It must be placed after the hyperscript tag, as otherwise _hyperscript is undefined.

  <script type="text/hyperscript" src="{% static 'demo/js/draggable._hs' %}"></script>
  <script src="https://unpkg.com/[email protected]"></script>
  <script src={% static 'demo/js/vendor/htmx/ext/hdb.js' %}></script> 

But this results in this error from my ._hs file

[email protected]:1 Uncaught (in promise) Error: Unexpected Token : breakpoint
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

No branches or pull requests

1 participant