-
-
Notifications
You must be signed in to change notification settings - Fork 8.7k
fix(escapeHtmlComment): Avoid throwing errors due to src
not being a …
#12459
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
base: main
Are you sure you want to change the base?
Conversation
Are you able to provide a reproduction of the problem? I don't think this can be merged until we understand the underlying reason why a non-string was passed to this function. It reminds me of #8870, which turned out to be caused by UnoCSS incorrectly rewriting Vue code. |
When I use the nuxt3 framework and webpack5 as a builder, using
After changing
in
, the error no longer occurs.
|
Thanks for the PR. This might fix your problem, but we need more context to analyze the root cause. Please provide a runnable minimal reproduction so that we can investigate the issue. |
I created a demo at https://cloudstudio.net/a/23155491845591040 |
@lazytong-tech |
you can download it at https://f002.backblazeb2.com/file/lazytong/demo.zip |
When building my project, Vue threw the error
src. replace is not a function
. After addingtoString()
to the functionescapeHtmlComment
, this error did not occur again