Chatter-Laravel / core

The Laravel single page forum package (Vue + Tailwind CSS + Laravel)
MIT License
159 stars 39 forks source link

Laravel version 6.18.8 #15

Closed scottsuhy closed 4 years ago

scottsuhy commented 4 years ago

What am I missing? It's installed, i'm logged in, but there is nothing at /forums. I installed core ^6 on top of a fresh install of 6.18.8 (tried getting Laravel 7 to work but it would not resolve dependencies). ...but I have no /forums.

my web.php file is this--which is quite different than the devdojo routes:

Route::get('/', function () { return view('welcome'); }); Auth::routes();

Route::get('/home', 'HomeController@index')->name('home');

Auth::routes();

Route::get('/home', 'HomeController@index')->name('home');

Auth::routes();

Route::get('/home', 'HomeController@index')->name('home');

tpjigar commented 4 years ago

Same issue nothing in /forums link. in database testing data already available ...

tpjigar commented 4 years ago

Issue because of latest version of "sass-loader". downgrade "sass-loader" version and it will be working like charm..

follow this command.

npm uninstall --save-dev sass-loader npm install --save-dev sass-loader@7.1.0

scottsuhy commented 4 years ago

It didn't seem to have an impact. I even reinstalled laravel. Here is process:

composer create-project laravel/laravel chatter 6.18.0 composer require "chatter-laravel/core"

bad (see readme, removed dupe slashes): php artisan vendor:publish --provider "Chatter\Core\ChatterServiceProvider" fix: php artisan vendor:publish --provider "Chatter\Core\ChatterServiceProvider"

composer dump-autoload add: update .env file with database creds php artisan chatter:install (chose option to add data to database) updated app.php and kernal.php (as in step 4 and 5 on https://github.com/Chatter-Laravel/core) npm install tailwindcss npm uninstall --save-dev sass-loader npm install --save-dev sass-loader@7.1.0 php artisan serve --port=7777 http://127.0.0.1:7777/forums

see https://imgur.com/yKcF5TI for picture

sbarbat commented 4 years ago

@scottsuhy do you mind posting here you packages.json and composer.json files?

scottsuhy commented 4 years ago

see next comment. deleted this one as it didn't upload correctly.

scottsuhy commented 4 years ago

chatter.zip

sbarbat commented 4 years ago

I tried to run it with your same versions and it seems to worked fine. Did you followed all the instructions? Make sure you have the traits use HasApiTokens, Notifiable, CanDiscuss; included in your User model.

Regarding your routes, they look fine, this is a completely new implementation of the forum using Laravel as the API and Vue as the single page app.

sdunayer commented 4 years ago

The problem occurs because chatter:install fails while running the "npm run dev" command. Rolling back sass-loader does appear to solve the issue. In this case, he did the downgrade after the chatter:install and then failed to do an "npm run dev" to create the necessary assets. If you run the "npm run dev" everything will then work properly.

sbarbat commented 4 years ago

This is an incompatibility between Laravel Mix and sass-loader 8

Try:

npm uninstall --save-dev sass-loader
npm install --save-dev sass-loader@^7
npm run prod