Yii2 fresh install: vendor/bower/jquery/dist path is wrong

前端 未结 5 1513
星月不相逢
星月不相逢 2021-02-08 15:37

I just installed yii2 (advanced) using composer. I\'ve setup nginx, etc.

But it doesn\'t work:

Invalid Parameter – yii\\base\\InvalidParamException

The          


        
5条回答
  •  时光取名叫无心
    2021-02-08 16:10

    It seems your jquery/distis under bower/bower-asset instead under bower. In order to solve your problem, please move all bower-assetcontent including jquery subfolder and others like: bootstrap, yii2-pjax, puny code, etc. in bower folder (one level up). All these subfolders will be at the same level with bower-asset under bower folder. Now you can delete bower-asset folder if you want.

    Before you had:

    vendor/bower/bower-asset/jquery/dist/...

    Now you have:

    vendor/bower/jquery/dist...

    There shouldn't be any bower-asset subfolder.

    This will solve your problem and yii2 app will work as it should.

提交回复
热议问题