cuba-platform / frontend

Monorepo for CUBA Platform Frontend Tools and Libraries
Apache License 2.0
25 stars 12 forks source link

Error on execution "update-model" script from generated front module #290

Open vadimbasko opened 4 years ago

vadimbasko commented 4 years ago

ER: sdk is updated

AR: project model file searched in incorrect path

$ nr update-model

> sample-car-rent@0.1.0 update-model /p/fe/sample-car-rent/modules/front
> gen-cuba-front sdk:all --dest src/cuba

? Please select CUBA project you want to use for generation sample-car-rent [/p/fe/sample-car-rent]
events.js:200
      throw er; // Unhandled 'error' event
      ^

Error: Specified model file does not exist /p/fe/sample-car-rent/modules/front/src/cuba/projectModel.json
    at SdkAllGenerator._readProjectModel (/home/vadim/.nvm/versions/node/v12.14.1/lib/node_modules/@cuba-platform/front-generator/lib/common/base-generator.js:77:19)
    at SdkAllGenerator.<anonymous> (/home/vadim/.nvm/versions/node/v12.14.1/lib/node_modules/@cuba-platform/front-generator/lib/generators/sdk/sdk-generator.js:66:46)
vadimbasko commented 4 years ago

Not reproduced when call directly gen-cuba-front sdk:all --dest src/cuba