laravel-chat icon indicating copy to clipboard operation
laravel-chat copied to clipboard

Hi i am newbie to pusher facing the issue

Open Prashu2017 opened this issue 5 years ago • 2 comments
trafficstars

i am using laravel 5.5 version and need to implement chat feature in it. i got to know pusher can help so i installed the package in my app now i am facing a issue is my laravel app is using angular for frontend and it is getting conflict with vue. <div class="row cs-row"> <div id="app"> <div class="container" style="width: 500px !important"> <div class="row"> <div class="col-md-12"> <div class="panel panel-default"> <div class="panel-heading">Chats</div> <div class="panel-body"> <chat-messages :messages="messages"></chat-messages> </div> <div class="panel-footer"> <chat-form v-on:messagesent="addMessage" :user="{{ Auth::user()->username }}" ></chat-form> </div> </div> </div> </div> </div> </div> </div> this is my view

but not loading chat form only a blank box occurring there blank chat boc

require js

Prashu2017 avatar May 12 '20 07:05 Prashu2017

app.js:8 Uncaught ReferenceError: require is not defined at app.js:8

Prashu2017 avatar May 12 '20 07:05 Prashu2017

Update your components declarations with the .default

Like this:

  • https://github.com/jeremykenedy/laravel-chat/blob/master/resources/assets/js/app.js#L18
  • https://github.com/jeremykenedy/laravel-chat/blob/master/resources/assets/js/app.js#L19

jeremykenedy avatar May 24 '20 11:05 jeremykenedy