You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Multi-step transform changes the file name removing the trailing .jhi, but mem-fs is not updated.
At jhipster 7 we had a workaround that falls back to the multi-step file if the actual file is not found:
The workaround works but it work only for the specific api.
The fix is to update the mem-fs to point to the renamed file path.
Less then optimal implementation:
with current mem-fs apis, it would be possible to mark the file as not touched and add a new file, but the old file may a vinyl fs or other kind of file, making more difficult to clone/duplicate.
with current mem-fs-editor apis, it would be possible to move a file, but since it's designed to mimic the actual file system, the moved file is actually deleted and shows on snapshots.
Overview of the issue
Multi-step transform changes the file name removing the trailing
.jhi
, butmem-fs
is not updated.At jhipster 7 we had a workaround that falls back to the multi-step file if the actual file is not found:
generator-jhipster/generators/generator-base.js
Line 3523 in de2f4b1
The workaround works but it work only for the specific api.
The fix is to update the
mem-fs
to point to the renamed file path.Less then optimal implementation:
mem-fs
apis, it would be possible to mark the file as not touched and add a new file, but the old file may a vinyl fs or other kind of file, making more difficult to clone/duplicate.mem-fs-editor
apis, it would be possible to move a file, but since it's designed to mimic the actual file system, the moved file is actually deleted and shows on snapshots.Motivation for or Use Case
Native blueprint issue jhipster/generator-jhipster-native#85 (comment)
Reproduce the error
Native blueprint issue jhipster/generator-jhipster-native#85 (comment)
Related issues
Suggest a Fix
JHipster Version(s)
main
JHipster configuration
Entity configuration(s)
entityName.json
files generated in the.jhipster
directoryBrowsers and Operating System
The text was updated successfully, but these errors were encountered: