Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stop working in new Vue 2.2.0 #120

Closed
natocTo opened this issue Feb 26, 2017 · 3 comments
Closed

Stop working in new Vue 2.2.0 #120

natocTo opened this issue Feb 26, 2017 · 3 comments

Comments

@natocTo
Copy link

natocTo commented Feb 26, 2017

Maybe you already notice.

My app stop working after update Vue to newest version, with no specific error. But after comment out all v-lazy usage it was back working.

btw: No specific errors because it was production build, my mistake.

@jvandenaardweg
Copy link

jvandenaardweg commented Feb 26, 2017

Same problem!

Error:

TypeError: e.util.isObject is not a function
    at a.value (vue-lazyload.js:6)
    at a.value (vue-lazyload.js:6)
    at callHook$1 (vue.runtime.common.js:5102)
    at _update (vue.runtime.common.js:5028)
    at Array.updateDirectives (vue.runtime.common.js:5009)
    at invokeCreateHooks (vue.runtime.common.js:4607)
    at createElm (vue.runtime.common.js:4501)
    at createChildren (vue.runtime.common.js:4591)
    at createElm (vue.runtime.common.js:4499)
    at createChildren (vue.runtime.common.js:4591)
logError @ vue.runtime.common.js:418

Probably here:

key: "valueFormatter",
                value: function(t) {
                    var i = t
                      , n = this.options.loading
                      , r = this.options.error;
                    return e.util.isObject(t) && (t.src || this.options.silent || e.util.warn("Vue Lazyload warning: miss src with " + t),
                    i = t.src,
                    n = t.loading || this.options.loading,
                    r = t.error || this.options.error),
                    {
                        src: i,
                        loading: n,
                        error: r
                    }
                }

I think it has to do with this change in Vue 2.2.0:

Many exposed methods and properties on Vue.util have been removed. If you previously relied on them, you should migrate off of them since this object is intended for internal use only - it is not (and has never been) considered part of the public API and may change without notice in the future.

@hilongjw
Copy link
Owner

hilongjw commented Feb 27, 2017

I will fix it soon

@hilongjw
Copy link
Owner

hilongjw commented Feb 27, 2017

fixed in fixed in 1.0.0-rc12

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants