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
This bug occurred I tried @rage-js/core package outside testing directories for the first time and right after install, it started to spit out "Failed to read the config file" error everytime I try run, even though the rage.config.json path is given correctly. And then I checked the core package itself and ran my project with npm link from the local core package directory and somehow it worked out fine without any problem, I was very confused and unlinked the local core package and reinstalled @rage-js/core@latest again and this time it works, I don't know if this error is random or not but IF this error happens again anytime soon, please work on this issue.
Note
readConfigFile util function inside the core package merges the current path and then the given path, for example: E:/Project is the full path and ./rage.config.json is the given path and path.join will merge those two into E:/Project/rage.config.json. But there is a chance that the user will give a full path like E:/Project/rage.config.json itself as the given path and due to this, the readConfigFile will confuse and display the final path as E:/Project/E:/Project/rage.config.json. Hence this could be prevented, Somehow.
This bug occurred I tried
@rage-js/corepackage outside testing directories for the first time and right after install, it started to spit out "Failed to read the config file" error everytime I try run, even though therage.config.jsonpath is given correctly. And then I checked the core package itself and ran my project withnpm linkfrom the local core package directory and somehow it worked out fine without any problem, I was very confused and unlinked the local core package and reinstalled@rage-js/core@latestagain and this time it works, I don't know if this error is random or not but IF this error happens again anytime soon, please work on this issue.Note
readConfigFileutil function inside the core package merges the current path and then the given path, for example:E:/Projectis the full path and./rage.config.jsonis the given path andpath.joinwill merge those two intoE:/Project/rage.config.json. But there is a chance that the user will give a full path likeE:/Project/rage.config.jsonitself as the given path and due to this, thereadConfigFilewill confuse and display the final path asE:/Project/E:/Project/rage.config.json. Hence this could be prevented, Somehow.