trax-project / trax2-starter-lrs

GNU General Public License v3.0
28 stars 18 forks source link

Target class [Fruitcake\Cors\CorsService] does not exist. #16

Closed sfraysse closed 2 years ago

sfraysse commented 2 years ago

Error after installing TRAX LRS 2.0.1:

Illuminate\Contracts\Container\BindingResolutionException
Target class [Fruitcake\Cors\CorsService] does not exist.
sfraysse commented 2 years ago

This error is caused by a specific update of a the dependency named laravel-cors. Version 2.1.0 was working, version 2.2.0 causes the issue, version 3.0.0 is working again :)

A workaround if you encounter this issue:

composer require fruitcake/laravel-cors:2.1.0
sfraysse commented 2 years ago

The dependencies of the project have been updated to solve this issue.