2.6.10
https://codesandbox.io/embed/vue-template-ysl83
Just click the link and you see the error and start editing.
Go to the second of the component and you see a red line (line no 24?)
It says that the string literal is not correct, but its because it loads just a piece of it.
No compilation error
A compilation error
it seems that the </script> string makes the SFC parser stop earlier than it should.
As a workaround you can escape the slash <\/script>
Most helpful comment
it seems that the
</script>string makes the SFC parser stop earlier than it should.As a workaround you can escape the slash
<\/script>