dmstr / yii2-adminlte-asset

AdminLTE Asset Bundle for Backend Theme in Yii2 Framework
1.14k stars 425 forks source link

SyntaxError: expected expression, got '<' #114

Closed ahmadfadlydziljalal closed 7 years ago

ahmadfadlydziljalal commented 7 years ago

In assets/AppAsset.php

class AppAsset extends AssetBundle
{

    public $basePath = '@webroot';
    public $baseUrl = '@web';
    public $sourcePath = '@bower';
    public $css = [
        'adminLTE/dist/css/AdminLTE.css',
        'css/site.css',

    ];
    public $js = [
        'adminLTE/dist/js/app.js',
        'js/main.js',
        'js/moment.js',
    ];
    public $depends = [
        'yii\web\YiiAsset',
        'yii\bootstrap\BootstrapAsset',
        'yii\bootstrap\BootstrapPluginAsset',
    ];

}

get error : SyntaxError: expected expression, got '<' , So , try to commented out : 'adminLTE/dist/js/app.js', error dissapeared. Thanks

schmunk42 commented 7 years ago

Please provide more information about the error, closing until further info.