-
Notifications
You must be signed in to change notification settings - Fork 25
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
IE10/IE11: Object doesn't support this action #40
Comments
Man, sorry for the bad language, but fuck IE. D: The culprit seems to be the |
Does the render event serve any purpose (If our app isn't using it?) Android Browser <5 also triggers an error. (but the Event function does exists). Added a try/catch block for android around a solution found on: https://stackoverflow.com/questions/26596123/internet-explorer-9-10-11-event-constructor-doesnt-work
|
The render event is used to tell Pupeteer that the app has finished rendering to DOM - basically a trigger to save the snapshot to disk. Please try #41, I have had to write a more proper source file transform operation given how much code I was going to, well, transform. I've also included your polyfill (which was what I had found, but without the try/catch block) - so try to break it because since I'm transforming AST instead of just naive string manipulation, this should support many more use-cases. |
Works great! Not able to break it yet, Thank you. Nice PR description :)
If that's all, isn't it easier to just not trigger this event (except while running the build?) |
Well, you could always add a check to see if it's pre-rendering (I believe I'm merging the PR and will work towards getting a minor version bump out, thanks for the issue! |
* Use AST transforms to add polyfill and dispatch render event * Don't write "registry" key to options * Make event-inserting ast transform idempotent * Add document.dispatchEvent to the event-creation AST function * Try/catch for Event object use Reference: #40 (comment)
Ran in to this issue several times this week with IE11 users, sadly i do need to support them. Does the latest release handle this issue, i.e 1.16 I know this issue was fixed in #41 but im not sure how to access that with npm as the latest official is 1.16. Sorry not familiar with accessing other versions , please help. |
I'm getting a
on
mounted: () => document.dispatchEvent(new Event("x-app-rendered")),
To Reproduce
Steps to reproduce the behavior:
Use defaults; add to project; run in IE10/IE11
Expected behavior
A clear and concise description of what you expected to happen.
No error on console / bugsnag
Additional context
Package version: 1.1.6
Vue version: X.X.X
Vue CLI version: X.X.X
The text was updated successfully, but these errors were encountered: