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

How to install codemirror-like assets? #2

Closed
axtho opened this issue Apr 6, 2018 · 2 comments
Closed

How to install codemirror-like assets? #2

axtho opened this issue Apr 6, 2018 · 2 comments

Comments

@axtho
Copy link

axtho commented Apr 6, 2018

I had codemirror in my project (conquer/codemirror), which has

public $sourcePath = '@bower/codemirror';

in its Asset file. Doing composer update or composer require produces this error:

- Installation request for conquer/codemirror ^2.0 -> satisfiable by conquer/codemirror[2.0].
- conquer/codemirror 2.0 requires bower-asset/codemirror * -> no matching package found.

All the other publishers have the same issue. How to deal with this? Was this plugin not supposed to move that to its folder? It has done that with jquery (from Yii2) and others.

Does that mean when we use this plugin we cannot require Assets that rely on @bower/....?

Thanks!

@yidas
Copy link
Owner

yidas commented Apr 7, 2018

Unfortunately, This lib is only support for Yii 2 core bower asset.

Do not use Bower mixed with Composer project is the goal of this package.

If you are requiring other Bower packages in Yii2, you could choose Asset Packagist solution.

@axtho
Copy link
Author

axtho commented Apr 7, 2018

Ok. Makes sense. I was mislead by the description of this project, which suggests that it is a cover-all solution.

Yii 2 official Composer repository solution for Bower Assets

Thanks.

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