-
Notifications
You must be signed in to change notification settings - Fork 12
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
error Pusher.ScriptReceivers[1] is not a function #4
Comments
Are you using two or more instances of the library in your project? . The reason is that the library makes use of the global namespace (window.Pusher) for some of its functionality and if a second instance is loaded it will override any previous instances. |
can u help me how to do that ?
…On Sat, Mar 24, 2018 at 11:17 PM, Jaouad Ballat ***@***.***> wrote:
Are you using two or more instances of the library in your project? I've
managed to reproduce your issue by loading Pusher twice on the page.
Lamentably, this is currently not supported. The reason is that the library
makes use of the global namespace (window.Pusher) for some of its
functionality and if a second instance is loaded it will override any
previous instances.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#4 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AaHw3urNaWq6wAzf-nIi0DiJNEJV7l1Yks5thmOLgaJpZM4S5xXC>
.
|
wish version of laravel you use ? |
5.6 sir this my code https://github.com/wahyupermadie/laraChat-Vue-Pusher
…On Sat, Mar 24, 2018 at 11:27 PM, Jaouad Ballat ***@***.***> wrote:
wish version of laravel you use ?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#4 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AaHw3sPUjUObZ_dPnzxOYAVpi_Hhqw9Dks5thmXbgaJpZM4S5xXC>
.
|
in bootstrap.js you have |
import Echo from 'laravel-echo'
window.Pusher = require('pusher-js');
still got the same error sir
…On Sat, Mar 24, 2018 at 11:34 PM, Jaouad Ballat ***@***.***> wrote:
in bootstrap.js you have
import Pusher from 'pusher-js' import Echo from 'laravel-echo'
window.Pusher = require('pusher-js');
as you can see you have imported pusher twice delete the first line and
try again
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#4 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AaHw3sF2eLEASpUpttP11JIj-8l6a1caks5thmeWgaJpZM4S5xXC>
.
|
have you installed dependencies ?? |
yes of course i follow all of ur step, can u help me by cloning my code and
check at your pc ?
…On Sat, Mar 24, 2018 at 11:46 PM, Jaouad Ballat ***@***.***> wrote:
have you installed dependencies ??
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#4 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AaHw3hwNhzfK2SzqgnniV-Na20RpFwJzks5thmpagaJpZM4S5xXC>
.
|
now i'm using just phone when i came home i'will try. try to fork my project into yours |
its okay, thank u so much sir
…On Sat, Mar 24, 2018 at 11:54 PM, Jaouad Ballat ***@***.***> wrote:
now i'm using just phone when i came home i'will try. try to fork my
project into yours
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#4 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AaHw3rWSg-Vs2-oVbv1_3vgpA3MDGNhSks5thmw0gaJpZM4S5xXC>
.
|
Did the error fixed ? i have the same problem? |
hello i want to ask why i got error Pusher.ScriptReceivers[1] is not a function while i type a chat.
i follow all of your tutorial.
but i got this error and trying to fix but i cant.
thanks
The text was updated successfully, but these errors were encountered: