Closed Grawl closed 4 years ago
It's not clear that HTML is broken because of github code highlighter.
If you copy this code into WebStorm, you will see the problem:
As a workaround, I will replace all <script>
tags to [script]
and replace back on client.
Fixed in 0.1.6
Describe the bug
With
</script>
inwindow.__DATA__
there is a parse error:To Reproduce
Make your state look like this:
And you will see this HTML is not valid because
<script>
is closed in the middle of it's content'Seems like the problem is here:
https://github.com/universal-vue/uvue/blob/c6c421b65151481aafa6523d72b8293b331cfb22/packages/%40uvue/server/src/Renderer.ts#L43
Expected behavior
State loaded without runtime errors
Additional context