You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying add arena in a specific route on express, but I have this errors:
Refused to apply style from '<URL>' because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled.
localhost/:73 GET http://localhost:9999/stats/queues/vendor/jsoneditor.min.js net::ERR_ABORTED 404 (Not Found)
localhost/:74 GET http://localhost:9999/stats/queues/vendor/tablesort.min.js 404 (Not Found)
(index):76 GET http://localhost:9999/stats/queues/dashboard.js net::ERR_ABORTED 404 (Not Found)
(index):73 GET http://localhost:9999/stats/queues/vendor/jsoneditor.min.js net::ERR_ABORTED 404 (Not Found)
(index):74 GET http://localhost:9999/stats/queues/vendor/tablesort.min.js net::ERR_ABORTED 404 (Not Found)
(index):76 GET http://localhost:9999/stats/queues/dashboard.js 404 (Not Found)
(index):78 Uncaught ReferenceError: Tablesort is not defined
at (index):78
My code:
import"reflect-metadata";importexpressfrom"express";importArenafrom"bull-arena";constPORT=9999;constapp=express();constarena=Arena({queues: [{name: "queue",hostId: "Queue Server 1",type: "bee",host: "127.0.0.1",},],},{disableListen: true,basePath: "/stats/queues",},);app.use(express.json());app.get("/",(request,response)=>response.json({message: "Meu server Express, Typescript e ESLint!",}),);app.get("/stats/queues",arena);app.listen(PORT,()=>{console.log(`Back-end started in ${PORT}!`);});
The text was updated successfully, but these errors were encountered:
I'm trying add arena in a specific route on express, but I have this errors:
My code:
The text was updated successfully, but these errors were encountered: