Closed akoidan closed 4 years ago
Hi! Thank you for reporting this. Unfortunately, the official docs don't say which syntax must be used for the <template>
section. In fact the XML parsing works fine - what you have mentioned as an example is not a valid XML - I guess it's SGML (which is a quite relaxed superset) and that kind of parser has to be used. At first glance I can't see any reasonable high-level parser written in JS (and I don't want to write one + don't want to rely on string replace method as well :D). I'll investigate if there is any suitable solution.
I've stopped using vue
recently so I may not be up to date - maybe this package is no longer required and the official vue-loader
already covers this case?
@pawelgabryelewicz well, I stuck to that issue for the second time, and it's really hard to track those errors, cause from the first look it seems like the cause should be in babel-loader.
I have recently released version 1.1.1 which relies on internal vue-template-compiler
- please check if the issue persists. Starting from now all the files that Vue is able to compile, should work here as well. It's not exactly the source that you mentioned, but that was a good point to start with. Thanks for your contribution and your time. Sorry for the delay, this is a very side project.
This template causes typescript error:
Note the image closing tag is missing, but it's still valid vue template. Things like linters inspire that syntax