Console errors after upgrade
-
Re: browser console errors after v1.6.0 upgrade
After this config:
location ~ ^/assets/(.*) {
root /var/www/html/nodebb/;
try_files /build/public/$1 /public/$1 @nodebb;
types {
application/javascript jst;
text/css css;
}
}I am getting these issues:
Console logs:
Refused to execute script from 'https://dreamalarm.in/assets/nodebb.min.js?v=fvp3og7shma' because its MIME type ('application/octet-stream') is not executable, and strict MIME type checking is enabled.
(index):1 Refused to execute script from 'https://dreamalarm.in/assets/vendor/jquery/timeago/locales/jquery.timeago.en.js' because its MIME type ('application/octet-stream') is not executable, and strict MIME type checking is enabled.
(index):615 Uncaught ReferenceError: define is not defined
at (index):615
(anonymous) @ (index):615
(index):659 Uncaught ReferenceError: require is not defined
at (index):659 -
You used the wrong one, this is the right one:
types { application/javascript jst js; text/css css; }