Cannot read properties of undefined (reading 'match')
happens when an inline SVG includes <a>
#1841
Closed
3 tasks done
Labels
bug
Something isn't working
Describe the bug
When an inline SVG includes
<a>
, the following error happens.The error seems to be happening on this line.
vitepress/src/client/app/composables/preFetch.ts
Line 78 in 0048e2b
Reproduction
https://stackblitz.com/edit/vite-wmvpvc?file=docs%2Findex.md
Expected behavior
No error happens.
System Info
System: OS: Linux 5.0 undefined CPU: (8) x64 Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz Memory: 0 Bytes / 0 Bytes Shell: 1.0 - /bin/jsh Binaries: Node: 16.14.2 - /usr/local/bin/node Yarn: 1.22.19 - /usr/local/bin/yarn npm: 7.17.0 - /usr/local/bin/npm npmPackages: vitepress: latest => 1.0.0-alpha.40
Additional context
A real world reproduction: https://rollupjs.org/plugin-development/
I guess this bug doesn't affect any functionality other than prefetching.
Validations
The text was updated successfully, but these errors were encountered: