-
-
Notifications
You must be signed in to change notification settings - Fork 8.4k
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
Vue fails to mount in environments that don't provide window.SVGElement #3590
Comments
Will be fixed in the next version of the mocha vue cli plugin. |
On second though, we might want to consider making this more robust in Vue core. I'll reopen for further evalution. |
Does this really need a fix? For runtime-dom, we assume that it runs in a standard browser environment. |
Probably not. Wanted to check out why it was a problem on vue-cli durting testing with mocha though, before I close it. |
I think it's similar to #2943 |
- After upgrading `vue` and `@vue/test-utils`, I got errors "ReferenceError: SVGElement is not defined" when I ran unit tests. This is fixed by introducing `window.SVGElement` into `global`. vuejs/core#3590 issue #16
Version
3.0.11
Reproduction link
https://github.com/xinix/vue3-svg-bug
Steps to reproduce
Create a sample Vue3 app with Vue UI:
Select the following:
What is expected?
Sample test to run
What is actually happening?
An error is thrown:
The text was updated successfully, but these errors were encountered: