Closed sachinshah114 closed 4 years ago
Use process.cwd()
or __dirname
to refer to relative path.
@kaywolter Thanks for the quick reply, I tried but not works.
directory: __dirname +'/locales',
Did you check if the path is correct and if the directory exists? Do you have write access?
Version : "hapi-i18n": "^3.0.0"
code
Options:
When I run the server I got the below error.
It seems that Module tries to read the data from the above path but folder does not exist in that location. As I have checked on
node_module
andgit repo
there is another folder calledtest
and inside the test folder, there is a folder namedlocales
.Can anyone help me to fix this issue?