-
Notifications
You must be signed in to change notification settings - Fork 783
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
bug: Cannot read property 'data-opts' of undefined #2431
Comments
Thanks for the issue! This issue has been labeled as Please provide a reproduction with the minimum amount of code required to reproduce the issue. Without a reliable code reproduction, it is unlikely we will be able to resolve the issue, leading to it being closed. For a guide on how to create a good reproduction, see our Contributing Guide. |
I've already provided a sufficient amount of code. What needs to be added? |
I need a full app that I can clone to reproduce the issue. Following the steps you provided does not reproduce the issue for me. (You can put the app on GitHub and link me to the repo) |
@liamdebeasi Got it. Will do! |
@liamdebeasi The |
Thanks for the follow up. After a few failed attempts at getting this to break (ignore my previous comments 😊) I was able to get the error to reproduce. I will look into this. |
Thanks a lot, really appreciate it. I would just use the CDN but I'm attempting to make the application run offline. 👍 |
When Ionic is setup, it looks for the Ionic Framework scripts. It expects the The regex that is used to look for the files comes from Stencil, so I am going to move this issue to that repo to see if the Stencil team has any suggestions. |
Ahh, that makes sense. So if I disable Parcel's hashing, it should work, correct? |
Just giving a bump here, because offline functionality is a key feature of my app. Any solutions? |
I have similair problem with stenciljs. I have to add hash/tag to the resource because of server caching. |
@micahlt try to add attribute to script with namespace of components based on this code
You have to find out namespace for those components, but I think it could be just "ionic". Let me know if that helps. |
@erichstark Thanks for the help! Unfortunately, due to this slowdown my team has switched from Ionic to Material Components. |
I would also be interested in a solution to this, I want to import ionic into my typescript web app |
Same issue and don't know how to fix. Any ideas @liamdebeasi |
Anything? This issue prevents from using plain JS with a bundler... or any other JS framework.. |
This is still a current issue with "@stencil/core": "2.10.0" |
Bump to this. The only method for using Vanilla Ionic that has worked for me is using the CDN links, trying to use an import to the package doesn't work. In fact, manually copying the entire ionic project into the project folder and using the local path 1) assumes all of the generated files are in the root / and if I copy all of those files to the root it throws the error:
|
The fix for this bug has gone out with the Stencil v3.1.0 release 🎉 |
Bug Report
Ionic version:
[x] 4.x
Current behavior:
When using the latest version of Ionic (downloaded via npm) in the browser, I receive the following error in the console:
The page is not hydrated.
Expected behavior:
No errors and a hydrated website.
Steps to reproduce:
Other information:
It's a possibility that it could be a Parcel (bundler) issue instead of Ionic, but I don't think so.
Ionic info:
The text was updated successfully, but these errors were encountered: