Open fsanvido opened 6 years ago
Happens something similar when destroying a relationship via CLI. The line where the relationship is included in the group file needs to be deleted to avoid this error.
ember d api-hasmany company --to=user
Error: ENOENT: no such file or directory, open 'ws-docs/api-blueprints/api-groups/user/relationships/companies.apib'
content of api-blueprints/api-groups/user/user.apib
...
<!-- include(./relationships/companies.apib) -->
<!-- include(./relationships/permissions.apib) -->
If a file imported from other
.apib
file is not present in the directory tree, the underline build crashes causing ember-cli to crash also, exiting the build pipeline and forcing to re-start ember-cli serve after fixing the error.This is highly impracticaly for common operations such file renaming, performed outside the add blueprints.
An example of the error: