Closed krissss closed 4 years ago
solve by step:
composer.json
add config"config": {
"foxy-yii2-convert": {
"target-map": {
"bower-asset/swagger-ui": "npm-asset/swagger-ui-dist"
}
}
}
Remove first if already installed.
You will see node_modules\swagger-ui-dist
in your project
'aliases' => [
'@bower/swagger-ui/dist' => '@npm/swagger-ui-dist'
],
yiisoft/yii2-jui:
"foxy-yii2-convert": {
"target-map": {
"bower-asset/jquery-ui": "npm-asset/components-jqueryui"
}
},
'aliases' => [
'@bower/jquery-ui' => '@npm/components-jqueryui'
],
swagger-ui
in bower is matchswagger-ui-dist
in npm.swagger-ui
in npm is another package.so
bower-asset/swagger-ui
is equalnpm-asset/swagger-ui-dist