代码之家  ›  专栏  ›  技术社区  ›  wondim

无法在节点js上运行Sencha CMD生成的ExtJS 6.2应用程序

  •  0
  • wondim  · 技术社区  · 6 年前

    const express = require('express');
    const app  = express();
    
    //Middleware
    app.use(express.static(__dirname + '/public/monitor/' ));
    app.post('/', function( req ,res){
        res.send("Success");
    });
    
    app.listen(3000, function(){
        console.log('Server running on port 3000');
    });
    
    var server = app.listen(3300, function () {
        var host = server.address().address;
        var port = server.address().port;
    
        console.log('App listening at http://%s:%s', host, port);
    });
    

    但是,由于以下错误,它无法运行该页。

    Refused to apply style from 'http://localhost:3000/build/development/Monitor/classic/resources/Monitor-all_1.css?_dc=1597650810261' because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled.
    

    sencha website 但这不是ExtJS的GPL版本。所以我无法更新到extjs6.6或7.0。

    有什么办法吗?

    0 回复  |  直到 6 年前
        1
  •  0
  •   wondim    6 年前

    推荐文章