Codesandbox-client: Using Vue's new "v-slot" attribute does not work

Created on 15 Feb 2019  路  8Comments  路  Source: codesandbox/codesandbox-client

馃悰 bug report

Description of the problem

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.

How has this issue affected you? What are you trying to accomplish?

I tried to use v-slot because it's a much nicer API than the previous slot-scope. 馃榿

Link to sandbox: link

Your Environment

| 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

Most helpful comment

@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.

All 8 comments

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. :)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

faceyspacey picture faceyspacey  路  44Comments

jthegedus picture jthegedus  路  21Comments

Vill3m picture Vill3m  路  23Comments

ryanpcmcquen picture ryanpcmcquen  路  23Comments

YarivGilad picture YarivGilad  路  22Comments