Giter Site home page Giter Site logo

/canvas-ui is blank about canvas HOT 6 CLOSED

adrelliott avatar adrelliott commented on July 18, 2024
/canvas-ui is blank

from canvas.

Comments (6)

austintoddj avatar austintoddj commented on July 18, 2024 1

Are you using Vite to compile the assets?

@adrelliott @mdrdani I repro'd the issue, and it's due to Laravel 9 shifting from Mix to Vite to compile assets.

Follow these steps to resolve your issue:

Pull Laravel Mix into the project:

npm install laravel-mix --save-dev

Ensure your webpack.mix.js file has the following lines:

const mix = require('laravel-mix');

mix.js('resources/js/canvas-ui/app.js', 'public/js/canvas-ui.js').vue()
    .sass('resources/sass/canvas-ui.scss', 'public/css/canvas-ui.css');

Add the following lines to the script block in package.json:

"canvas.ui.dev": "mix",
"canvas.ui.prod": "mix"

Run npm run canvas.ui.dev to compile the assets.

from canvas.

austintoddj avatar austintoddj commented on July 18, 2024 1

@othmoz I don't have a definitive date set at the moment, but aiming for the next few months.

from canvas.

mdrdani avatar mdrdani commented on July 18, 2024

Same bug with Laravel 9, and I change to Laravel 8 its work canvas-ui

from canvas.

othmoz avatar othmoz commented on July 18, 2024

do you plan to add support for vite as it's the preferred way going forward with Laravel ?

from canvas.

austintoddj avatar austintoddj commented on July 18, 2024

@othmoz The next version of Canvas (v7.0) isn't going to make CanvasUI an SPA. There won't be any added dependencies and build, it's going to be traditional Blade files which will be simpler to work with and modify. So in a way, yes, Canvas won't care if you use Vite.

from canvas.

othmoz avatar othmoz commented on July 18, 2024

from canvas.

Related Issues (20)

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.