renatomarinho / laravel-page-speed

Package to optimize your site automatically which results in a 35%+ optimization
MIT License
2.4k stars 275 forks source link

$ is undefined - jQuery is not working after install package #151

Open bhavdip111 opened 3 years ago

bhavdip111 commented 3 years ago

I just installed this package and getting jQuery undefined error. We have used Laravel mix in the project. Is this creating an issue?

Laravel version : 7.x PHP version : 7.3.5 Laravel page speed package version : ^2.0 OS : Debian 10

lucasMesquitaBorges commented 3 years ago

Hi @bhavdip111 thanks for reporting!

I believe this issue is related with #145 I'll check it.

amersofia commented 3 years ago

has the problem been solved ?

zawaruddin commented 2 years ago

has the problem been solved ?

you can try to comment middleware DeferJavascript::class in Kernel.php