I have an ionic application built using ionic V1. Everything was working fine until recently. Now this EISDIR error keeps popping up whenever I try to build it. After a lot of debugging, I found out that cordova-plugin-crypt-file was causing the issue. Because when I disable it, the project successfully Builds.
I am using Cordova crypt file plugin to encrypt my source code. I spent a lot of time trying to fix it, but sadly I couldn't do anything.
I also know that EISDIR error is due to directory issue ("Error, Is Directory") from NPM stuck giving the same error EISDIR: Illegal operation on a directory, read at error (native). But I could not find any directory issues in my project.
Also, I have seen this issue on github https://github.com/tkyaji/cordova-plugin-crypt-file/issues/39. As suggested in the question when I comment the problematic line. Everything is ok and the project Builds.
I am not sure how to debug this. Any help would be appreciated. Since the client suggested this plugin, I have been actively searching for a way to fix this. But could not find any solutions yet.
Thanks in advance.