question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Require vue-chat-scroll returns empty object

See original GitHub issue

after install the latest version with npm:

> require('vue-chat-scroll')
{}

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:1
  • Comments:58 (19 by maintainers)

github_iconTop GitHub Comments

6reactions
And-recommented, Apr 9, 2017

I doesn’t work for me as well. I’m using:

import Vue from 'vue'
import VueChatScroll from 'vue-chat-scroll'
Vue.use(VueChatScroll)

and then

<ul id="chat-messages" v-chat-scroll>

and I’m getting [Vue warn]: Failed to resolve directive: chat-scroll error

2reactions
mmieluchcommented, Apr 25, 2017

Yea, sorry man 😦 I’m using 1.1.1 and having this issue too 😕

From my yarn.lock:

vue-chat-scroll@^1.1.1:
  version "1.1.1"
  resolved "https://registry.yarnpkg.com/vue-chat-scroll/-/vue-chat-scroll-1.1.1.tgz#9d4278fc5d85d98dc3d43e140856c7659b4aaba3"

Doing

import Vue from 'vue'
import VueChatScroll from 'vue-chat-scroll'
Vue.use(VueChatScroll)

does not register the directive, even though console is logging this:

console.log(VueChatScroll)
> Object {}
>   installed: true

Standard const VueChatScroll = require('vue-chat-scroll') logs out as an empty object.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Vue-chat-scroll doesn't work with a loader - Stack Overflow
I tried to wrap the messages + loader inside a single div element (like in the snippet) · I tried to put the...
Read more >
Changing Scroll Behavior with Vue Router | by John Au-Yeung
If we return something falsy or an empty object, no scrolling will happen. If we change scrollBehavior to: scrollBehavior(to, from, ...
Read more >
Scroll down in vue in specific element - Laracasts
I am trying to scroll down on new appeared element in vue: I have chat messages where I have two arrays: data() {...
Read more >
Create a performant virtual scrolling list in Vue.js
Implement virtual scrolling in large lists in your Vue.js application to decrease data renders and improve your UX.
Read more >
[Fixed] Simple responsive website, layout is broken after ...
Dear Vue community, I am using Django-Vue stack for our simple landing page. It was working fine, ... (returns empty style).
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found