v3 to v4 - Invalid left-hand side in assignment (at rich-editor.js?v=4.1.9.0:10:18777)
Hi guys, I have the same error as these ones:
- https://discord.com/channels/883083792112300104/1425751848744255548
- https://discord.com/channels/883083792112300104/1408020261910876220
But none of the solutions worked for me.
The Problem:
After migrate from v3 to v4, and tailwind from v3 to v4 too, I have a console error (likely caused by
blur-sm class somewhere).
The complete error is this one:
What I've tried:
❌ Remove all assets in public/css/filament and public/js/filament
❌ Remove awcodes assets
❌ Run php artisan filament:assets
❌ Run php artisan filament:upgrade
❌ Run composer update
❌ Run npm run build
❌ Run npm run dev
❌ Run php artisan optimize:clear
Your help is welcome!
I'm on the last version (v4.1.9).
Solution:Jump to solution
Well, I manually removed the
-sm, then ran php artisan filament:assets again, and then build, and it works now...
Some caching issue, I guess... 😵💫...2 Replies
Ok... What I just found is more weird:
my
vendor/filament/forms/dist/components/rich-editor.js contains this we.blur-sm
But I can see on github that
https://raw.githubusercontent.com/filamentphp/filament/refs/tags/v4.1.9/packages/forms/dist/components/rich-editor.js
doesn't contain that, we have we.blur instead
How is it possible? I'm lost.Solution
Well, I manually removed the
-sm, then ran php artisan filament:assets again, and then build, and it works now...
Some caching issue, I guess... 😵💫