Oxide Style
-
@Nicolas-0 Most likely the problem is caused by this change: theme changes for NodeBB/NodeBB#7266
You must update NodeBB to the latest version available on github.
-
@youhosi said in [nodebb-theme-oxide] Oxide Style! 3.0.26:
./nodebb log
when update foro is dead:
2019-01-20T20:13:34.790Z [4567/26517] - error: [build] templates build failed 2019-01-20T20:13:34.790Z [4567/26517] - error: [build] Encountered error during build step TypeError: Property consequent of ConditionalExpression expected node to be of a type ["Expression"] but instead got null at Object.validate (/root/nodebb/node_modules/babel-types/lib/definitions/index.js:109:13) at validate (/root/nodebb/node_modules/babel-types/lib/index.js:505:9) at Object.builder (/root/nodebb/node_modules/babel-types/lib/index.js:466:7) at Object.OpenIf (/root/nodebb/node_modules/benchpressjs/build/lib/compiler/compiler.js:105:14) at compile (/root/nodebb/node_modules/benchpressjs/build/lib/compiler/compiler.js:146:49) at Object.OpenIter (/root/nodebb/node_modules/benchpressjs/build/lib/compiler/compiler.js:118:246) at compile (/root/nodebb/node_modules/benchpressjs/build/lib/compiler/compiler.js:146:49) at compiler (/root/nodebb/node_modules/benchpressjs/build/lib/compiler/compiler.js:160:20) at compileFallback (/root/nodebb/node_modules/benchpressjs/build/lib/precompile.js:32:17) at Promise.try (/root/nodebb/node_modules/benchpressjs/build/lib/precompile.js:93:88) Error occurred during upgrade: TypeError: Property consequent of ConditionalExpression expected node to be of a type ["Expression"] but instead got null at Object.validate (/root/nodebb/node_modules/babel-types/lib/definitions/index.js:109:13) at validate (/root/nodebb/node_modules/babel-types/lib/index.js:505:9) at Object.builder (/root/nodebb/node_modules/babel-types/lib/index.js:466:7) at Object.OpenIf (/root/nodebb/node_modules/benchpressjs/build/lib/compiler/compiler.js:105:14) at compile (/root/nodebb/node_modules/benchpressjs/build/lib/compiler/compiler.js:146:49) at Object.OpenIter (/root/nodebb/node_modules/benchpressjs/build/lib/compiler/compiler.js:118:246) at compile (/root/nodebb/node_modules/benchpressjs/build/lib/compiler/compiler.js:146:49) at compiler (/root/nodebb/node_modules/benchpressjs/build/lib/compiler/compiler.js:160:20) at compileFallback (/root/nodebb/node_modules/benchpressjs/build/lib/precompile.js:32:17) at Promise.try (/root/nodebb/node_modules/benchpressjs/build/lib/precompile.js:93:88) 2019-01-20T20:13:34.794Z [4567/26517] - error: uncaughtException: Property consequent of ConditionalExpression expected node to be of a type ["Expression"] but instead got null TypeError: Property consequent of ConditionalExpression expected node to be of a type ["Expression"] but instead got null at Object.validate (/root/nodebb/node_modules/babel-types/lib/definitions/index.js:109:13) at validate (/root/nodebb/node_modules/babel-types/lib/index.js:505:9) at Object.builder (/root/nodebb/node_modules/babel-types/lib/index.js:466:7) at Object.OpenIf (/root/nodebb/node_modules/benchpressjs/build/lib/compiler/compiler.js:105:14) at compile (/root/nodebb/node_modules/benchpressjs/build/lib/compiler/compiler.js:146:49) at Object.OpenIter (/root/nodebb/node_modules/benchpressjs/build/lib/compiler/compiler.js:118:246) at compile (/root/nodebb/node_modules/benchpressjs/build/lib/compiler/compiler.js:146:49) at compiler (/root/nodebb/node_modules/benchpressjs/build/lib/compiler/compiler.js:160:20) at compileFallback (/root/nodebb/node_modules/benchpressjs/build/lib/precompile.js:32:17) at Promise.try (/root/nodebb/node_modules/benchpressjs/build/lib/precompile.js:93:88) {"error":{},"stack":"TypeError: Property consequent of ConditionalExpression expected node to be of a type [\"Expression\"] but instead got null\n at Object.validate (/root/nodebb/node_modules/babel-types/lib/definitions/index.js:109:13)\n at validate (/root/nodebb/node_modules/babel-types/lib/index.js:505:9)\n at Object.builder (/root/nodebb/node_modules/babel-types/lib/index.js:466:7)\n at Object.OpenIf (/root/nodebb/node_modules/benchpressjs/build/lib/compiler/compiler.js:105:14)\n at compile (/root/nodebb/node_modules/benchpressjs/build/lib/compiler/compiler.js:146:49)\n at Object.OpenIter (/root/nodebb/node_modules/benchpressjs/build/lib/compiler/compiler.js:118:246)\n at compile (/root/nodebb/node_modules/benchpressjs/build/lib/compiler/compiler.js:146:49)\n at compiler (/root/nodebb/node_modules/benchpressjs/build/lib/compiler/compiler.js:160:20)\n at compileFallback (/root/nodebb/node_modules/benchpressjs/build/lib/precompile.js:32:17)\n at Promise.try (/root/nodebb/node_modules/benchpressjs/build/lib/precompile.js:93:88)","exception":true,"date":"Sun Jan 20 2019 15:13:34 GMT-0500 (Eastern Standard Time)","process":{"pid":26517,"uid":0,"gid":0,"cwd":"/root/nodebb","execPath":"/usr/bin/node","version":"v10.15.0","argv":["/usr/bin/node","/root/nodebb/nodebb","upgrade"],"memoryUsage":{"rss":286519296,"heapTotal":238538752,"heapUsed":110355616,"external":21365758}},"os":{"loadavg":[1.4716796875,0.7333984375,0.59765625],"uptime":287874},"trace":[{"column":13,"file":"/root/nodebb/node_modules/babel-types/lib/definitions/index.js","function":"Object.validate","line":109,"method":"validate","native":false},{"column":9,"file":"/root/nodebb/node_modules/babel-types/lib/index.js","function":"validate","line":505,"method":null,"native":false},{"column":7,"file":"/root/nodebb/node_modules/babel-types/lib/index.js","function":"Object.builder","line":466,"method":"builder","native":false},{"column":14,"file":"/root/nodebb/node_modules/benchpressjs/build/lib/compiler/compiler.js","function":"Object.OpenIf","line":105,"method":"OpenIf","native":false},{"column":49,"file":"/root/nodebb/node_modules/benchpressjs/build/lib/compiler/compiler.js","function":"compile","line":146,"method":null,"native":false},{"column":246,"file":"/root/nodebb/node_modules/benchpressjs/build/lib/compiler/compiler.js","function":"Object.OpenIter","line":118,"method":"OpenIter","native":false},{"column":49,"file":"/root/nodebb/node_modules/benchpressjs/build/lib/compiler/compiler.js","function":"compile","line":146,"method":null,"native":false},{"column":20,"file":"/root/nodebb/node_modules/benchpressjs/build/lib/compiler/compiler.js","function":"compiler","line":160,"method":null,"native":false},{"column":17,"file":"/root/nodebb/node_modules/benchpressjs/build/lib/precompile.js","function":"compileFallback","line":32,"method":null,"native":false},{"column":88,"file":"/root/nodebb/node_modules/benchpressjs/build/lib/precompile.js","function":"Promise.try","line":93,"method":"try","native":false}]}
-
Update to 4.0.0, install last version
npm install nodebb-theme-oxide@latest
Changelog: Github - Commits
- Move topic stats to top page,
- Improvement users list,
- Better code,
- and other small fixes
-
Update to 4.0.3, install last version
npm install nodebb-theme-oxide@latest
Changelog: Github - Commits
- Improvement topic header
-
Same problem here:
- Fresh Install latest nodebb 1.11.x on ubuntu 18.04 on clean mongo database.
- install nodebb-theme-oxide@latest (4.0.3)
- Select Oxide theme as default in admin panel.
- During rebuild following error appears and templates build fails
TypeError: Property consequent of ConditionalExpression expected node to be of a type ["Expression"] but instead got null
at Object.validate (/home/forum/nodebb/node_modules/babel-types/lib/definitions/index.js:109:13)I hope you will figure out, how to solve this issue at least for fresh installs.
Thank you for making this wonderfull theme, keep up this great work!
-
@smartpunter try
npm install nodebb-theme-oxide@latest && ./nodebb upgrade && ./nodebb restart && ./nodebb log
and show logs.
-
@youhosi said in [nodebb-theme-oxide] Oxide Style! 3.0.26:
npm install nodebb-theme-oxide@latest && ./nodebb upgrade && ./nodebb restart && ./nodebb log
After i do this, everything is OK, no errors.
Then i choose Oxide theme in admin panel and do "rebuild and restart". No matter, how i do this, via admin panel or with shell command "./nodebb upgrade && ./nodebb restart" the same error appears during build, when Oxide theme is selected.2019-02-13T13:28:14.677Z [/sockets/nodebb.sock/13952] - [32minfo[39m: [build] plugin static dirs build completed in 0.624sec 2019-02-13T13:28:21.883Z [/sockets/nodebb.sock/13952] - [32minfo[39m: [build] client side styles build completed in 7.826sec 2019-02-13T13:28:23.332Z [/sockets/nodebb.sock/13952] - [31merror[39m: [build] templates build failed 2019-02-13T13:28:23.333Z [/sockets/nodebb.sock/13952] - [31merror[39m: [build] Encountered error during build step TypeError: Property consequent of ConditionalExpression expected node to be of a type ["Expression"] but instead got null at Object.validate (/home/forum/nodebb/node_modules/babel-types/lib/definitions/index.js:109:13) at validate (/home/forum/nodebb/node_modules/babel-types/lib/index.js:505:9) at Object.builder (/home/forum/nodebb/node_modules/babel-types/lib/index.js:466:7) at Object.OpenIf (/home/forum/nodebb/node_modules/benchpressjs/build/lib/compiler/compiler.js:105:14) at compile (/home/forum/nodebb/node_modules/benchpressjs/build/lib/compiler/compiler.js:146:49) at Object.OpenIter (/home/forum/nodebb/node_modules/benchpressjs/build/lib/compiler/compiler.js:118:246) at compile (/home/forum/nodebb/node_modules/benchpressjs/build/lib/compiler/compiler.js:146:49) at compiler (/home/forum/nodebb/node_modules/benchpressjs/build/lib/compiler/compiler.js:160:20) at compileFallback (/home/forum/nodebb/node_modules/benchpressjs/build/lib/precompile.js:32:17) at Promise.try (/home/forum/nodebb/node_modules/benchpressjs/build/lib/precompile.js:93:88) 2019-02-13T13:28:25.921Z [/sockets/nodebb.sock/13952] - [32minfo[39m: [build] admin control panel styles build completed in 11.863sec
I have node v. 11.9 installed on Ubuntu 18.04, in case that helps.