Hyperledger composer generator: Trying to copy from a source that doesn't exist (no concepts support for Angular)

醉酒当歌 提交于 2020-01-16 09:02:35

问题


I have a composer-rest-server running on localhost:3000. To go with that, I tried to generate an Angular 2 app using yo hyperledger-composer. My business network models also have a abstract concept Spray{...} present.

I believe the documentation is outdated as I was presented with slightly different options than on the documentation. After choosing Angular and following through the steps, I got an AssertionError: Trying to copy from source that does not exist ... /concept/concept.component.ts

Based on some quick google searches, I was able to find this issue on their Github - https://github.com/hyperledger/composer/issues/3927 however in my case, I am not even able to build the Angular app so I don't even get to the compilation stage.

Is there any way to build the app right now where it's at?


回答1:


I've created a Github issue explaining steps to reproduce this and also included a hacky fix which is to comment out the lines in the generator code which copy over the concept files.

Link - https://github.com/hyperledger/composer/issues/4328



来源:https://stackoverflow.com/questions/51774093/hyperledger-composer-generator-trying-to-copy-from-a-source-that-doesnt-exist

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!