Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Class 'JShrink\Minifier' not found #7

Open
aidonsnous opened this issue Jun 18, 2016 · 6 comments
Open

Class 'JShrink\Minifier' not found #7

aidonsnous opened this issue Jun 18, 2016 · 6 comments

Comments

@aidonsnous
Copy link

I am getting this error on line 29 in vendor/lajax/yii2-asset-minifier/src/minifiers/PhpJsMinifier.php :

public function minify($path)
    {
        return Minifier::minify(file_get_contents($path), $this->options
}

I am using the minimal configuration

  'assetMinifier' => [
        'class' =>'lajax\assetminifier\Component',
    ],
@aidonsnous
Copy link
Author

Is there any solution for this problem?

@moltam
Copy link
Contributor

moltam commented Jul 8, 2016

Is your JShrink package correctly installed? It should have been installed by composer, as it is listed in the requirements, but maybe something went wrong. Check your vendor folder.

@aidonsnous
Copy link
Author

Any idea please!!!

@aidonsnous
Copy link
Author

aidonsnous commented Jul 11, 2016

@moltam, I didn't not see your message. Thanks for the clarification, I did not know that JShrink was required to use the extension. I've install it and the extension is working with error in console log for javascript codes.

@moltam
Copy link
Contributor

moltam commented Jul 12, 2016

Try reinstall the package:

composer remove lajax/yii2-asset-minifier
composer require lajax/yii2-asset-minifier

Btw. you don't need to know the dependencies, composer should install them.
This must be some composer issue, I think your initial install failed for some mystical reason.

@aidonsnous
Copy link
Author

aidonsnous commented Jul 12, 2016

@moltam, I tried to reinstall the package but I am still getting the same error, check this https://github.com/lajax/yii2-asset-minifier/issues/8I submitted:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants