runtime-only 无法使用 template属性
shmy opened this issue · comments
shmy commented
Vue warn]: You are using the runtime-only build of Vue where the template compiler is not available. Either pre-compile the templates into render functions, or use the compiler-included build.
Edgar Cheverier commented
The same here
Anthony Sierra commented
the same here++
林鑫 commented
Please update to the V2.0.0
Anthony Sierra commented
可以说具体点吗,升级什么到2.0.0,我刚看了release并没有新版本
林鑫 commented
npm i vue2-toast@2.0.0 -S 即可
Anthony Sierra commented
感谢
Anthony Sierra commented
林鑫 commented
@Joeyueh 我来看看
林鑫 commented
@Joeyueh 里面 render 函数用了es6的语法,所以在uglifyJs压缩的时候出了错误。你可以改了一第51行和第105行的render函数,我现在来发一个新的版本修复。
Anthony Sierra commented
好的,我上次在使用swiper的时候遇到过类似的问题,没有将语法转为es5。
但是只是在少数不支持es6语法的手机中会出现空白的问题。
ps,我记得之前一个项目使用起来没这个问题啊,而且你的这个项目开源有一年了,不应该到现在才出现吧
林鑫 commented
@Joeyueh 好了,已经发了 V2.0.1