question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

The selector "#groupPrice *" on hx-include returned no matches!

See original GitHub issue

Describe the bug

I just updated to latest Sprig and Craft and on certain sprig includes I am getting this console error

htmx.min.js:1 The selector “#groupPrice *” on hx-include returned no matches!

My component incldue looks like this

{{ sprig('_components/product/handpainted/price', {
	activeProductVariant:activeProductVariant.id,
	dimension:'piece'
}, {id: 'groupPrice','s-trigger': 'load'}) }}

I’m guessing contents on include wouldn’t affect things

I can DM you a link to live page if needed

Versions

  • Plugin version:1.12.0
  • Craft version:3.7.36

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:10

github_iconTop GitHub Comments

1reaction
bencrokercommented, Mar 15, 2022
0reactions
goraxancommented, Mar 15, 2022

@studiobruikbaar I tried adding text (no html) in the else, adding a <div></div> in the else fixes it, thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Which filters did it not match? · Issue #1858 - GitHub
I've tried adding visible: true, count: 1 just in case it was accidentally invisible or the count default was something else. same behavior....
Read more >
html - &extend showing no matches when element exists
So, when trying to extend a nested selector, we should provide the full selector in the extend and not just the inner selector....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found