Compiling with Mix #1426
-
Hi all, I have a problem with compiling style and script files after installation. I use laravel 10 and php 8.1. I didn't change any settings during the installation. When I run this command - npm run canvas.ui.dev, I get this error: npm run canvas.ui.dev
✖ Mix Deprecation Warning: Passing percentage units to the global abs() function is deprecated. ╷ ERROR in ./resources/js/canvas-ui/app.js 5:0-33 ERROR in ./resources/js/canvas-ui/app.js 7:0-30 webpack compiled with 2 errors Any ideas how I can fix it? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
I also ran into this similar problem a few days ago and I resolved it by removing |
Beta Was this translation helpful? Give feedback.
-
It looks like Laravel 10 added the |
Beta Was this translation helpful? Give feedback.
I also ran into this similar problem a few days ago and I resolved it by removing
"type": "module"
frompackage.json
file and recompiled usingnpm run canvas.ui.dev