Git Product home page Git Product logo

Comments (6)

ishanvyas22 avatar ishanvyas22 commented on August 20, 2024

What is exact CakePHP version you are using? Also, the package version.

from asset-mix.

marianodonal avatar marianodonal commented on August 20, 2024

CakePHP 4.3.0

from asset-mix.

marianodonal avatar marianodonal commented on August 20, 2024

I've fixed it by updating routes.php file in plugin config folder.

use Cake\Routing\RouteBuilder;
use Cake\Routing\Route\DashedRoute;

return static function (RouteBuilder $routes) {
    $routes->plugin('AssetMix', ['path' => '/asset-mix'], function (RouteBuilder $routes) {
        $routes->fallbacks(DashedRoute::class);
    });
};

I don't know how to perform a pull request, maybe I can collaborate. Thanks

from asset-mix.

Andream98 avatar Andream98 commented on August 20, 2024

I'm on CakePHP 4.3 with the latest version of this package and I've also changed the routes.php file because of the deprecation warnings I get when I start the CakePHP server:

<?php

    use Cake\Routing\Route\DashedRoute;
    use Cake\Routing\RouteBuilder;

    /** @var RouteBuilder $routes */
    $routes->plugin(
        'AssetMix',
        ['path' => '/asset-mix'],
        function (RouteBuilder $routes) {
            $routes->fallbacks(DashedRoute::class);
        });

@ishanvyas22 let me know which version seems more appropriate to you so that I can create a PR.

PS: I will be opening the same PR on cakephp-inertiajs too

from asset-mix.

ishanvyas22 avatar ishanvyas22 commented on August 20, 2024

@Andream98 v4.3.0 seems good as it is deprecated in that version only.

You can create a PR with the change and updating CakePHP version to 4.3 in composer.json file.

from asset-mix.

ishanvyas22 avatar ishanvyas22 commented on August 20, 2024

Released in 1.4.0

from asset-mix.

Related Issues (17)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.