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:
Uncaught (in promise) SyntaxError: Invalid left-hand side in assignment (at rich-editor.js?v=4.1.9.0:10:18777)
Uncaught (in promise) SyntaxError: Invalid left-hand side in assignment (at rich-editor.js?v=4.1.9.0:10:18777)
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).
No description
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... 😵‍💫...
Jump to solution
2 Replies
charlie
charlieOP2mo ago
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
charlie
charlie2mo ago
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... 😵‍💫

Did you find this page helpful?