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

Harmonized asset namespace to allow asset compression without errors #859

Merged
merged 2 commits into from
Nov 20, 2018
Merged

Harmonized asset namespace to allow asset compression without errors #859

merged 2 commits into from
Nov 20, 2018

Conversation

simialbi
Copy link
Contributor

@simialbi simialbi commented Nov 19, 2018

When you compress your assets you get an yii\base\InvalidConfigException beacause of kartik\dialog\DialogBootstrapAsset and kartik\grid\GridViewAsset. kartik\dialog\DialogBoostrapAsset depends on kartik\dialog\DialogAsset like this:

$this->depends = array_merge(['kartik\dialog\DialogAsset'], $this->depends);

and kartik\grid\GridViewAsset like this:

$this->depends = array_merge(["\\kartik\\dialog\\DialogAsset"], $this->depends);

This results in a double asset load loop and produces the following error

Invalid Configuration – yii\base\InvalidConfigException
An asset bundle that depends on 'all' has a higher javascript file position configured than 'all'.

Scope

This pull request includes a

  • Bug fix
  • New feature
  • Translation

Changes

The following changes were made (this change is also documented in the change log):

  • harmonized asset namespaces

Related Issues

If this is related to an existing ticket, include a link to it as well.

When you compress your assets you get an `yii\base\InvalidConfigException` beacause of `kartik\dialog\DialogBootstrapAsset` and `kartik\grid\GridViewAsset`. `kartik\dialog\DialogBoostrapAsset` depends on `kartik\dialog\DialogAsset` like this: 
```php
        $this->depends = array_merge(['kartik\dialog\DialogAsset'], $this->depends);
```
and `kartik\grid\GridViewAsset` like this:
```php
$this->depends = array_merge(["\\kartik\\dialog\\DialogAsset"], $this->depends);
```
This results in a double asset load loop and produces the following error
> Invalid Configuration – yii\base\InvalidConfigException
   An asset bundle that depends on 'all' has a higher javascript file position configured than 'all'.
@kartik-v kartik-v merged commit 5fdfcfc into kartik-v:master Nov 20, 2018
@simialbi simialbi deleted the patch-1 branch November 20, 2018 06:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants