Upgrading from 2.8 to 3

Trying to upgrade an existing Twill project. Keep getting the following error in the log [2023-07-18 17:50:09] production.ERROR: Target class [App\Http\Controllers\Admin\HomepageController] does not exist. {"exception":"[object] (Illuminate\Contracts\Container\BindingResolutionException(code: 0): Target class [App\Http\Controllers\Admin\HomepageController] does not exist. at /Users/mrpink/Desktop/Web Dev/acbsupgrade/vendor/laravel/framework/src/Illuminate/Container/Container.php:879) Updated the web routes to reflect the new \Twill\ directory structure. Updated composer dependencies. Tried running twill:build but fails when getting to the building Twill assets step because of a "digital envelope routines::unsupported" error. Any ideas on what might be happening or is there a more in depth article on upgrading than what's on Twills Official documentation?
2 Replies
ifox
ifox16mo ago
Hi @christfister first things first, do you actually need to build Twill? You only need to do that if you're using custom Vue components. Now, the error you are getting about digital envelope is a node version issue. Make sure to use LTS. Did you clear all caches after updating routes?
Christfister
Christfister16mo ago
Hey @ifox.dev thanks for the reply. I did clear all the caches and it started giving me a slew of more errors in addition to the previous one. Though I did start with a fresh Twill 3 install and have been manually copying my modules to the new project and it seems to be working well as the new nested blocks feature is gonna be nice for my client. I'm just having an issue now with a date-time module. It seems Twill 3 uses ISO 8601 date and time format and my MySQL 5.7.34 database doesn't like that. Is there a way to change Twills datetime format? Or any plug-ins you know of to allow MySQL to parse it? Like instead of the datepicker setting the date to something like 2023-07-20T12:34:56Z can it be set to 2023-07-20 18:30:00 by default. Is there an option in flatpikr to do that?
Want results from more Discord servers?
Add your server