Open wahyupermadie opened 6 years ago
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 notifications@github.com 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 https://github.com/jaouadballat/chatapp/issues/4#issuecomment-375896987, 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 notifications@github.com 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 https://github.com/jaouadballat/chatapp/issues/4#issuecomment-375897817, or mute the thread https://github.com/notifications/unsubscribe-auth/AaHw3sPUjUObZ_dPnzxOYAVpi_Hhqw9Dks5thmXbgaJpZM4S5xXC .
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
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 notifications@github.com 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 https://github.com/jaouadballat/chatapp/issues/4#issuecomment-375898372, 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 notifications@github.com wrote:
have you installed dependencies ??
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/jaouadballat/chatapp/issues/4#issuecomment-375900004, 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 notifications@github.com 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 https://github.com/jaouadballat/chatapp/issues/4#issuecomment-375901218, or mute the thread https://github.com/notifications/unsubscribe-auth/AaHw3rWSg-Vs2-oVbv1_3vgpA3MDGNhSks5thmw0gaJpZM4S5xXC .
Did the error fixed ? i have the same problem?
please comment to require('./bootstrap') on the second app.js file, I have 3 files 1) admin_app.js 2) admin_search.js and app.js ,this error show on multiple instances of the root.
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