Vue 2.6 brought the new v-slot directive for using slots. While Vue 2.6 is used in CodeSandbox, this new directive is not recognized in compiled .vue files.
I tried to use v-slot because it's a much nicer API than the previous slot-scope. 馃榿
| Software | Name/Version|
| ---------------- | ---------- |
| 小odesandbox | PROD-1549895067-bab5c8d3
| Browser | This should be a server-side issue, successfully reproduced in latest versions of Chrome, Firefox and Safari
| Operating System | macOS 10.14
I assume this might be because an older version of vue-template-compiler is used here?
Sounds plausible to me.
Can anyone comment on a similar issue here: https://codesandbox.io/s/yppozpw0z9. I'm using the newest version of Vue, and static default and named slots are working just fine with the new syntax. However attempting to pass a value and function out to the slot for use is failing. I have this same exact code working in a local application just fine.
@NJM8 Regardless of your sandbox vue version, like @Haroenv said, the CodeSandbox browser bundler uses a specific version of vue-loader (and implicitly of vue-template-compiler), which you can find here, and which was last updated somewhere around 2.5.10. We'll (well, mostly @CompuIves) try to update the vue loader and template compiler to 2.6.x as soon as possible.
Same issue with dynamic attributes which were also added with 2.6.0: https://codesandbox.io/s/lp39q1r6zq
Vue tries to set [dynamicAttribute] as attribute name which kind of confirms the previous assumption that the vue-template-compiler is outdated.
Hey there,
This is indeed long standing, I just opened #1640 and marked it ASAP, @Loilo I'd suggest closing this and following that instead.
Alright. Thanks. :)
Most helpful comment
@NJM8 Regardless of your sandbox
vueversion, like @Haroenv said, the CodeSandbox browser bundler uses a specific version ofvue-loader(and implicitly ofvue-template-compiler), which you can find here, and which was last updated somewhere around2.5.10. We'll (well, mostly @CompuIves) try to update the vue loader and template compiler to2.6.xas soon as possible.