Closed dinho-afsn closed 7 years ago
Here is the line 273 ~ 275 of iscroll.js
function IScroll (el, options) {
this.wrapper = typeof el == 'string' ? document.querySelector(el) : el;
this.scroller = this.wrapper.children[0];
...
}
It seems that the wrapper
created by option el
never had a property named children
. Try to print this.wrapper
between line 274 & 275 and then show me the log message, it's a lot of help for debugging.
@dinho-afsn ping
Is somebody here? @dinho-afsn
Hello, I'm trying to use iscrollview with ssr and am getting this error: iscroll.js:275 Uncaught TypeError: Cannot read property '0' of undefined at IScroll (iscroll.js:275) at Function.Vue.use (vue.runtime.esm.js:3866) at Object.defineProperty.value (iscroll-view.js:4) at webpack_require (bootstrap a91fff8…:691) at fn (bootstrap a91fff8…:114) at Object.defineProperty.value (index.js:92) at webpack_require (bootstrap a91fff8…:691) at fn (bootstrap a91fff8…:114) at Object.options.path (client.js:1) at __webpack_require__ (bootstrap a91fff8…:691)
Could you help me or do you know why this might be happening?