BRACKETS-by-TRIAD / craftable

Admin panel builder / CRUD generator for Laravel.
https://getcraftable.com
MIT License
979 stars 192 forks source link

Support for Laravel 10 / PHP 8 #423

Closed newtovaux closed 10 months ago

newtovaux commented 1 year ago

When attempting to do a manual install in an existing but fresh Laravel 10 / PHP 8 project, some of the dependencies are showing incompatibilities:

Problem 1

palypster commented 1 year ago

Sorry, we haven't release Laravel v10 support yet. Sorry about that.

In the meantime you can try out our Craftable PRO version which offers a free trial now.

verybigelephants commented 1 year ago

Is there perhaps any timeline estimate on when is the non-pro version going to be supported by laravel 10? :)

francosalcedo commented 1 year ago

Any new :(?

YevheniiVolosiuk commented 10 months ago

Any new :(?

palypster commented 10 months ago

All the PRs were merged, we are about to make a release after some final testing: https://github.com/BRACKETS-by-TRIAD/craftable/pull/426

francosalcedo commented 10 months ago

All the PRs were merged, we are about to make a release after some final testing: #426

Very thanks man!

erikgreasy commented 10 months ago

The new release of Craftable with Laravel 10 support has just been published. Closing the issue

verybigelephants commented 10 months ago

i think this will need more work than just that

for example, when you try to use native larael breeze user auth scaffolding there's a conflict, as it expects package.json to have "type": "module", which is incompatible with craftable admin builder

erikgreasy commented 10 months ago

@verybigelephants we will have a look at that

erikgreasy commented 10 months ago

I was able to reproduce the problem with clean Laravel installation with Breeze and Craftable. The main issue seems to be with postcss.config.js file, which uses the export syntax which is not working without "type": "module", causing npm run dev to fail. Anyway, I managed to fix the issue by renaming postcss.config.js => postcss.config.mjs.

Can you try this and see if this helps resolve the issue in your project @verybigelephants ?

verybigelephants commented 10 months ago

i have solved it by renaming postcss.config.js to postcss.config.cjs and replaced the syntax inside the file to this format

module.exports = ({ env }) => ({ plugins: [ require('tailwindcss')(), require('autoprefixer')() ] })

as mentioned here