-
Notifications
You must be signed in to change notification settings - Fork 790
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
Query parameters on entry point JS files causes error Uncaught (in promise) TypeError: Cannot read property 'data-opts' of undefined
#1775
Comments
The lack of import.meta in Edge requires scripts to find themselves in the DOM to figure out their absolute location, the query must be breaking that |
I get this when trying to use Stencil inside Shadow DOM. @perrygovier did you solve this in the end?? |
@noisyscanner manu's fix resolved this for me. Are you on the current version of stencil? Is it possible to not use query parameters in your URL? |
Actually had the same issue without query params in the URL, but just from trying to render it inside shadow root. |
Yeah, I have the same issue. My url has no query params:
If I place |
Hey everyone, today I got the same problem while I was refactoring my code. ( Your problem could be PascalCase || CamelCase) Wrong one:
Correct one:
Cheers |
@noisyscanner I'm getting this same issue. Specifically from trying to use an external component in a shadow DOM component. Did you happen to find a solution/way around this? |
@manucorporat I have got the same error when adding version of the build into url.
Is that a problem for stencil? |
@ElectricDanDan unfortunately not - I have not used Stencil for a while I am afraid :/ |
Stencil version:
I'm submitting a:
[x] bug report
[ ] feature request
[ ] support request => Please do not submit support requests here, use one of these channels: https://stencil-worldwide.herokuapp.com/ or https://forum.ionicframework.com/
Current behavior:
On Ionicframework.com, we include an md5 checksum query parameter to bust the cache of script includes. Doing this on the new module/nomodule script that I am warned to start using causes the following error:
Expected behavior:
Stencil should bootstrap and hydrate like it does with the legacy script tag
Steps to reproduce:
Related code:
Add query parameters to the script tags stencil instructs you to use. Something like
Other information:
You can reproduce this in the ionic-site repo by swapping out the comments on these lines and restarting the watch script.
The text was updated successfully, but these errors were encountered: