@RoldanLT You may want to look into Varnish. We haven't attempted to use this for NodeBB, although it would be similar to what you need.
[Solved] NodeBB is running but not loading - Script error for vendor/async
-
Hello there,
I'm recently unable to load up the forum. When I check the dev console, I can see this error:
Uncaught Error: Script error for: vendor/async
What would that mean? How could I fix it? I'm using version 0.0.23-4 for the Lavender theme, and version 0.3.2 (commit 4309fe3) for NodeBB itself.
Thank you! -
Hi @leo -- make sure that nodebb-theme-vanilla and nodebb-theme-lavender are completely up to date
-
Hi Julian, doing this as I speak! Will keep you informed about how it goes.
-
Hi @leo, didn't notice that you included a commit has... that commit you'll want to install an older version of some plugins:
- "nodebb-plugin-markdown": "0.3.4-2",
- "nodebb-widget-essentials": "0.0.9",
- "nodebb-theme-lavender": "0.0.22-16",
-
Here is
package.json
's content:... "nodebb-plugin-mentions": "~0.4", "nodebb-plugin-markdown": "~0.4", "nodebb-widget-essentials": "~0.0", "nodebb-theme-vanilla": "~0.0.14", "nodebb-theme-cerulean": "~0.0.13", "nodebb-theme-lavender": "~0.0.22", ...
Should I use another commit?
-
@julian @leo the same as you, but I get websoket error too
<code>
nodebb.min.js:7
event.returnValue is deprecated. Please use the standard event.preventDefault() instead. nodebb.min.js:2
WebSocket connection to 'ws://www.example.com/socket.io/1/websocket/-CrTw6VKn9Z6gq04eBj7' failed: Error during WebSocket handshake: Unexpected response code: 502 socket.io.js:2
GET http://www.example.com/404 404 (The Page Not Found.) nodebb.min.js:8
Uncaught Error: Script error for: vendor/async
</code> -
@leo Yes, the package.json is incorrect for your version of NodeBB -- you should install the packages above by running:
$ npm install nodebb-plugin-markdown@0.3.4-2 $ npm install nodebb-widget-essentials@0.0.9 $ npm install nodebb-theme-lavender@0.0.22-16
-
Unfortunately, that didn't seem to work... Still getting:
Uncaught Error: Script error for: vendor/async
-
Just before that error, the dev console also shows a 404 error, not sure what might be causing it?
GET https://forum.shoutca.st/404 404 (Not Found)
h.load nodebb.min.js:8
_.load nodebb.min.js:8
w.load nodebb.min.js:7
w.fetch nodebb.min.js:7
w.check nodebb.min.js:7
w.enable nodebb.min.js:7
_.enable nodebb.min.js:8
(anonymous function) nodebb.min.js:7
(anonymous function) nodebb.min.js:7
z nodebb.min.js:7
w.enable nodebb.min.js:7
w.init nodebb.min.js:7
(anonymous function) nodebb.min.js:8 -
@leo said in NodeBB is running but not loading - Script error for vendor/async:
Just before that error, the dev console also shows a 404 error, not sure what might be causing it?
GET https://forum.shoutca.st/404 404 (Not Found)
h.load nodebb.min.js:8
_.load nodebb.min.js:8
w.load nodebb.min.js:7
w.fetch nodebb.min.js:7
w.check nodebb.min.js:7
w.enable nodebb.min.js:7
_.enable nodebb.min.js:8
(anonymous function) nodebb.min.js:7
(anonymous function) nodebb.min.js:7
z nodebb.min.js:7
w.enable nodebb.min.js:7
w.init nodebb.min.js:7
(anonymous function) nodebb.min.js:8 -
@leo Are you running a custom theme fork of Lavender? You'll have to pull the latest changes from Lavender to your theme. Specifically,
header.tpl
. -
Actually, as I messed with my NodeBB's installation and broke it, I just cloned it from the repo and then it worked