Warning: never upgrade nodebb without taking a back-up of your working code.
The release process, tests etc are yet to mature. (18th Jan 2018)
Error:
The stack trace did not point to any file in the development project but in the node_modules (dependancy stack):
TypeError: Path must be a string. Received undefined at assertPath (path.js:28:11)Got to know that problem lies in the browserlist package:
https://github.com/ai/browserslist/issues/158
https://github.com/postcss/autoprefixer/issues/865
But !
Browserlist was not a direct dependancy: (npm ls | grep borwser)
It was used in: autoprefix
So, used a version of autoprefixer that uses a version of borwserify where this was fixed.
Finally this fixed it:
diff --git a/install/package.json b/install/package.json
index b4d52f5..ecdfe80 100644
--- a/install/package.json
+++ b/install/package.json
@@ -19,7 +19,7 @@
"dependencies": {
"ace-builds": "^1.2.9",
"async": "2.6.0",
- "autoprefixer": "7.1.6",
+ "autoprefixer": "7.2.5",
"bcryptjs": "2.4.3",
"benchpressjs": "^1.2.0",
"body-parser": "^1.18.2",