-
-
Notifications
You must be signed in to change notification settings - Fork 521
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
/canvas-ui is blank #1181
Comments
Same bug with Laravel 9, and I change to Laravel 8 its work canvas-ui |
@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 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 "canvas.ui.dev": "mix",
"canvas.ui.prod": "mix" Run |
do you plan to add support for vite as it's the preferred way going forward with Laravel ? |
@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. |
Thanks for your answer, any visibility on when v7 is going to be available ?
On Fri, 27 Jan 2023 at 13:50 Todd Austin ***@***.***> wrote:
@othmoz <https://github.com/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.
—
Reply to this email directly, view it on GitHub
<#1181 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AABJZFGEF523JETNDLGVL4LWUPAARANCNFSM6AAAAAAS5LQXOI>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
--
Othmane OUAHBI
DEVMOZ
+212 661 321 644
http://www.devmoz.com
|
@othmoz I don't have a definitive date set at the moment, but aiming for the next few months. |
* hotfix/6.0.47: builds assets Apply fixes from StyleCI (#1304) adds laravel mix and node scripts to fix #1181 uses an svg instead of an icon #1300 updates dependencies and compiles assets updates highlightjs version fixes deprecated Github favicons #1300 Apply fixes from StyleCI (#1303) Corrected bug when CANVAS_PATH is empty in EmbedImageModal and FeaturedImageModal
v6.0.47 stable release * tag 'v6.0.47': builds assets Apply fixes from StyleCI (#1304) adds laravel mix and node scripts to fix #1181 uses an svg instead of an icon #1300 updates dependencies and compiles assets updates highlightjs version fixes deprecated Github favicons #1300 Apply fixes from StyleCI (#1303) Corrected bug when CANVAS_PATH is empty in EmbedImageModal and FeaturedImageModal
Is there an existing issue for this?
Current Behavior
I install canvas-ui, and visit this in the browser:
/canvas-ui
I just get a blank page.
Expected Behavior
I was expecting to see a front end. (Maybe I've misunderstood what canvas-ui command does!)
Steps To Reproduce
In local, install canvas via composer
Run the install comand
run
php artisan canvas:ui
run
npm install
run
npm run dev
Create a demo post
Go to /canvas-ui and see bank screen
Environment
Anything else?
I'm pretty sure it;s something I'm doing wrong here!
The text was updated successfully, but these errors were encountered: