thedevdojo / chatter

Chatter is a Simple Laravel Forum Package
https://devdojo.com/forums
MIT License
900 stars 294 forks source link

Can't create discussion #237

Open LuukPrins opened 5 years ago

LuukPrins commented 5 years ago

Everytime I try to create a new discussion the text-editor keeps loading as seen below. It didn't do this before and I don't know why it keeps loading. Please help. I also keep getting "$(...).spectrum is not a function" even though I've installed spectrum through NPM.

image

niloc7 commented 5 years ago

Yeah me too. Same problem. I think it's because it's not updated to the latest version of Laravel yet.

LuukPrins commented 5 years ago

If I in Chrome Devtools change the ID 'new_discussion' to something else to corrupt the css/js connected it does work (kind of). I think the loader is just bugged. Anyone any idea how to fix it?

jgusta commented 5 years ago

Hey everyone, this is a two part issue. I believe "$(...).spectrum is not a function" issue is a race condition due to jquery being loaded in app.js and this package trying to synchronously add the spectrum plugin to jquery.

The horrible kludge I am using is to just synchronously load app.js by removing the "defer" attribute from <script src="{{ asset('js/app.js') }}" defer></script> in resources/views/layouts/app.blade.php. (thanks to https://github.com/thedevdojo/chatter/issues/226#issuecomment-438640209)

As for the second part see comment below.

Edit: Clarify scope of comment

gitaudotdev commented 5 years ago

If you're having issues with the creating new discussions check out 👇 https://github.com/thedevdojo/chatter/issues/244#issuecomment-488680638