Comments (6)
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.
@othmoz I don't have a definitive date set at the moment, but aiming for the next few months.
from canvas.
Same bug with Laravel 9, and I change to Laravel 8 its work canvas-ui
from canvas.
do you plan to add support for vite as it's the preferred way going forward with Laravel ?
from canvas.
@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.
from canvas.
Related Issues (20)
- Route [canvas.login] not defined. HOT 6
- When visit /canvas-ui the js and css file can not find HOT 4
- Using existing User model HOT 3
- Publishing of posts not working HOT 4
- Post not showing under published section, but is published. HOT 3
- Change the canvas-ui page title HOT 2
- Save full path of images with domain appended to it HOT 4
- Share Article to Social Media Facebook, Linkedin etc HOT 11
- how to deploy to vercel or netlify? HOT 1
- how to use spatie pkg https://github.com/spatie/laravel-export with canvas for static site HOT 2
- Is there an artisan command to regenerate an admin user? HOT 1
- Endless loop HOT 2
- How to remove /canvas-ui from url? HOT 1
- Embed Code content doesn't use <pre> tag
- Empty CANVAS_PATH breaks the image uploads HOT 1
- PostStats@getDefaultFavicon returns an error
- is it possible to add new page/module like posts and tags module? HOT 1
- Migration guide from themsaid's wink to canvas
- Ability to create Page HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from canvas.