yup. Posting a fix for that when I get a chance:
https://github.com/NodeBB/NodeBB/issues/2319
psychobunny created this issue in NodeBB/NodeBB closed Infinite scroll for anon is potentially broken on mobile #2319I'm using nodebb 1.4.2.
When I type ./nodebb build
, it have the following output:
3/2 15:47:59 [6125] - info: [build] Building javascript
3/2 15:47:59 [6125] - info: [build] js => Completed in 0.012s
3/2 15:47:59 [6125] - info: [build] Building client-side CSS
3/2 15:48:01 [6125] - info: [build] clientCSS => Completed in 1.901s
3/2 15:48:01 [6125] - info: [build] Building admin control panel CSS
3/2 15:48:03 [6125] - info: [build] acpCSS => Completed in 1.879s
3/2 15:48:03 [6125] - info: [build] Building templates
3/2 15:48:03 [6125] - info: [build] tpl => Completed in 0.107s
3/2 15:48:03 [6125] - info: [build] Building language files
3/2 15:48:05 [6125] - info: [build] lang => Completed in 1.631s
3/2 15:48:05 [6125] - info: [build] Asset compilation successful. Completed in 6.151s.
When I deleted public/nodebb.min.js
, and retype ./nodebb build
, I have the following output:
./nodebb build
3/2 15:49:22 [6212] - info: [build] Building javascript
3/2 15:49:22 [6212] - info: [build] js => Completed in 0.007s
3/2 15:49:22 [6212] - info: [build] Building client-side CSS
3/2 15:49:24 [6212] - info: [build] clientCSS => Completed in 1.884s
3/2 15:49:24 [6212] - info: [build] Building admin control panel CSS
3/2 15:49:25 [6212] - info: [build] acpCSS => Completed in 1.403s
3/2 15:49:25 [6212] - info: [build] Building templates
3/2 15:49:26 [6212] - info: [build] tpl => Completed in 0.089s
3/2 15:49:26 [6212] - info: [build] Building language files
3/2 15:49:27 [6212] - info: [build] lang => Completed in 1.633s
3/2 15:49:27 [6212] - info: [build] Asset compilation successful. Completed in 5.645s.
But nodebb.min.js not generated.
If I run ./nodebb dev
, it shows:
3/2 15:49:43 [6264] - warn: [meta/js] /home/jiangcaiyang/WebProject/QtDream/public/nodebb.min.js not found on disk, did you run ./nodebb build?
Maybe ./nodebb build
is useless and cannot generate nodebb.min.js.
How to generate nodebb.min.js, so the code could be updated?
@jiangcaiyang it should be generating nodebb.min.js
and acp.min.js
. I'd suggest trying ./nodebb reset
and then ./nodebb upgrade
and then ./nodebb build
, and see if that does it.
@PitaJ I got the following error:
./nodebb reset
/home/jiangcaiyang/WebProject/QtDream/node_modules/mongodb/lib/utils.js:98
process.nextTick(function() { throw err; });
^
TypeError: Invalid data, chunk must be a string or buffer, not function
at WriteStream.Socket.write (net.js:653:11)
at /home/jiangcaiyang/WebProject/QtDream/src/reset.js:49:19
at /home/jiangcaiyang/WebProject/QtDream/src/database/mongo.js:114:6
at /home/jiangcaiyang/WebProject/QtDream/node_modules/mongodb/lib/db.js:1553:5
at handleCallback (/home/jiangcaiyang/WebProject/QtDream/node_modules/mongodb/lib/utils.js:95:56)
at _callback (/home/jiangcaiyang/WebProject/QtDream/node_modules/mongodb/lib/db.js:1469:5)
at /home/jiangcaiyang/WebProject/QtDream/node_modules/mongodb/lib/db.js:1512:7
at /home/jiangcaiyang/WebProject/QtDream/node_modules/mongodb-core/lib/connection/pool.js:724:7
at /home/jiangcaiyang/WebProject/QtDream/node_modules/mongodb-core/lib/connection/pool.js:702:11
at finish (/home/jiangcaiyang/WebProject/QtDream/node_modules/mongodb-core/lib/auth/scram.js:160:16)
I don't know how to resolve this problem.
@jiangcaiyang run npm install --production
@PitaJ The error seems to recur.
/home/jiangcaiyang/WebProject/QtDream/node_modules/mongodb/lib/utils.js:98
process.nextTick(function() { throw err; });
^
TypeError: Invalid data, chunk must be a string or buffer, not function
at WriteStream.Socket.write (net.js:653:11)
at /home/jiangcaiyang/WebProject/QtDream/src/reset.js:49:19
at /home/jiangcaiyang/WebProject/QtDream/src/database/mongo.js:114:6
at /home/jiangcaiyang/WebProject/QtDream/node_modules/mongodb/lib/db.js:1553:5
at handleCallback (/home/jiangcaiyang/WebProject/QtDream/node_modules/mongodb/lib/utils.js:95:56)
at _callback (/home/jiangcaiyang/WebProject/QtDream/node_modules/mongodb/lib/db.js:1469:5)
at /home/jiangcaiyang/WebProject/QtDream/node_modules/mongodb/lib/db.js:1512:7
at /home/jiangcaiyang/WebProject/QtDream/node_modules/mongodb/node_modules/mongodb-core/lib/connection/pool.js:724:7
at /home/jiangcaiyang/WebProject/QtDream/node_modules/mongodb/node_modules/mongodb-core/lib/connection/pool.js:702:11
at finish (/home/jiangcaiyang/WebProject/QtDream/node_modules/mongodb/node_modules/mongodb-core/lib/auth/scram.js:160:16)
@PitaJ My another instance has the same problem when running ./nodebb reset
.
@jiangcaiyang did you try this?
npm i
./nodebb upgrade
./nodebb build
./nodebb reset -a
./nodebb dev
@PitaJ Thanks you! nodebb.min.js updated successfully.