Closed kimar closed 8 years ago
Hi Marcus, thanks for the PR!
It seems like the require
internal implementation changed in node 5 and it is not accepting anymore the weird relative path that it was provided as a result of doing string concatenation between __dirname
and a relative path (that was pretty ugly actually)
Using path.join
is indeed a much better option but I think path.resolve
would be better suited for this scenario. What do you think?
I changed it here: https://github.com/iloire/watchmen/commit/45108473494712c6a0de2a6f605a70b75f38b622 thanks again!
:+1: path.resolve indeed sounds like what we want to use for this.
Using
Node.js v5.7
I'm receiving the following error when trying to run the app:It appears as if joining the path using
+
has a different outcome, I'd say it's better in any case to join it using thepath
-module.