Closed JollyGood1 closed 1 week ago
Only <g>
within <svg>
(meaning its namespace is SVG) will be recognized as a non-component. Otherwise, it will be treated as a regular component.
You can also use the allow
option to disable this error.
Thanks @waynzh for mentioning the workaround.
This is basically the same issue as #2458, so I'll close this as a duplicate. Feel free to comment there.
Checklist
Tell us about your environment
Please show your full configuration:
What did you do?
I have a code that looks something on the lines of this:
What did you expect to happen?
I expected no error since g is an svg element and not a component
What actually happened?
I'm getting this error:
Repository to reproduce this issue Is a repository truly necessary? I just use this code, it's pretty straight forward: