compilerOptions whitespace: 'preserve' causes compiler error with named slots and default slot #3766
Labels
❗ p4-important
Priority 4: this fixes bugs that violate documented behavior, or significantly improves perf.
🐞 bug
Something isn't working
scope: compiler
Version
3.1.0-beta.3
Reproduction link
https://codesandbox.io/s/tender-night-xbivj?file=/src/components/HelloWorld.vue
Steps to reproduce
(Note: Minimal reproduction is missing turning on compilerOptions: { whitespace: 'preserve' }. I've spent too much time trying to get it to be set in codesandbox.io. Any help appreciated)
What is expected?
Component to compile correctly.
What is actually happening?
VueCompilerError: Extraneous children found when component already has explicitly named default slot. These children will be ignored.
If you remove the line break between the template tags, the compiler is happy.
The text was updated successfully, but these errors were encountered: