Sencha CMD - 构建错误:混合模式x编译和微载入标记目前不受支持 [英] Sencha CMD - Build Error: Mixed-Mode x-compile and microload markup is currently unsupported

查看:181
本文介绍了Sencha CMD - 构建错误:混合模式x编译和微载入标记目前不受支持的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

好的一天,我正在尝试构建我的ExtJS 4.2应用程序,我正在使用Sencha Architect 3.1和Sencha CMD 5.1.1.39作为OSX。



我在追踪本教程如何构建从终端,和预期,我得到这个错误:



com.sencha.exceptions.ExBuild:混合模式x编译和微载入标记当前不受支持



在谷歌搜索时,我来到了这个来自Sencha的线程讨论了如何解决这个错误。



我以前做的是从我原来看起来像这样的 app.json 文件中删除行: p>

  {
name:my_app_name,
required:[],
id:eceafdc4-45e6-4dc1-b51a-75af9b7887a6,
resources:[
resources / css / rowCSS.css,
resources / css / receiptGrid。 css,
resources / css / propertyGrid.css,
resources / css / msgBox.css,
resources / css / popWindow.css,
资源/ css / passwordPrompt.css,
resources / css / textStyles.css
],
theme:ext-theme-classic-3ea6533d-fc56-477c-9143 -5085a431c7f3,
js:[
{
path:app.js,
bundle:true
}
],
css:[
{
path:bootstrap.css,
bootstrap:true
}
]
}

并将css和resources部分删除为sugg在上面的教程中。但是,我仍然有同样的错误。



我的 index.html 文件如下所示:

 <!DOCTYPE HTML> 

< html>
< head>
< meta charset =UTF-8>
< title> my_app_name< / title>
<! - < x-compile> - >
<! - < x-bootstrap> - >
< script src =ext / ext-dev.js>< / script>
< script src =bootstrap.js>< / script>
<! - < / x-bootstrap> - >
< script src =app / override / form / Panel.js>< / script>
< script type =text / javascriptsrc =app.js>< / script>
<! - < / x-compile> - >
< link rel =stylesheethref =bootstrap.css>

< link rel =stylesheethref =resources / css / rowCSS.cssid =child-row>
< link rel =stylesheethref =resources / css / receiptGrid.cssid =receiptGrid>
< link rel =stylesheethref =resources / css / propertyGrid.cssid =propertyGrid>
< link rel =stylesheethref =resources / css / msgBox.cssid =msgBox>
< link rel =stylesheethref =resources / css / popWindow.cssid =popWindow>
< link rel =stylesheethref =resources / css / passwordPrompt.cssid =passwordPrompt>
< link rel =stylesheethref =resources / css / textStyles.cssid =textStyles>
< / head>
< body>
< / body>
< / html>

在sencha网站上阅读线程时,似乎我不得不选择 app.json index.html 文件。所以我尝试删除了资源和css,内容首先是整个事情,并试图构建它,但没有效果。我仍然收到错误。



我真的很笨,我正在尝试构建和发布我的Web应用程序,以便用户不必加载大量的ExtJS脚本,其中很好的一大块也不用。



我也感到困惑,因为 index.html app.json (以及 app.js app.json.meta )似乎是自动自动由Sencha Architect 3.1生成。在构建和发布过程中,IDE生成似乎会稍后冲突的文件没有任何意义。



此外,Sencha Thread已经8年了。我不知道如何去除这里提供的技巧。



有人可以帮我解决这个问题吗?任何帮助非常感谢。谢谢。

解决方案

我已经通过降级为Sencha CMD 5.1.0.26解决了这个问题(解决了5.1.1.39的另一个问题, 1]),并完全删除 js css 零件:

  ... 
theme:ext-theme-classic-3ea6533d-fc56-477c-9143-5085a431c7f3
}

是的,它的一个耻辱如何成本如此之多的产品保持如此难以置信的坏。 p>

[1] https://www.sencha.com/forum/showthread.php?297673-Bug- JS-file-in-Sencha-Cmd-5.1.1.39& p = 1087279& viewfull = 1#post1087279 中的错误编码 -

Good day, I am trying to build my ExtJS 4.2 application and I am using Sencha Architect 3.1 and Sencha CMD 5.1.1.39 for the OSX.

I was following this tutorial on how to build from the Terminal, and as expected, I got this error:

com.sencha.exceptions.ExBuild: Mixed-Mode x-compile and microload markup is currently unsupported

Upon googling, I came upon this thread from Sencha discussing how to get around this error.

What I did next was to remove lines from my app.json file which originally looked like this:

{
   "name": "my_app_name",
   "requires": [],
   "id": "eceafdc4-45e6-4dc1-b51a-75af9b7887a6",
   "resources": [
      "resources/css/rowCSS.css",
      "resources/css/receiptGrid.css",
      "resources/css/propertyGrid.css",
      "resources/css/msgBox.css",
      "resources/css/popWindow.css",
      "resources/css/passwordPrompt.css",
      "resources/css/textStyles.css"
   ],
   "theme": "ext-theme-classic-3ea6533d-fc56-477c-9143-5085a431c7f3",
   "js": [
      {
         "path": "app.js",
         "bundle": true
      }
   ],
   "css": [
      {
         "path": "bootstrap.css",
         "bootstrap": true
      }
   ]
}

and removed the "css" and "resources" parts as suggested in the tutorial above. However, I still had the same error.

My index.html file looks as such:

<!DOCTYPE HTML>

<html>
<head>
    <meta charset="UTF-8">
    <title>my_app_name</title>
    <!-- <x-compile> -->
        <!-- <x-bootstrap> -->
            <script src="ext/ext-dev.js"></script>
            <script src="bootstrap.js"></script>
        <!-- </x-bootstrap> -->
        <script src="app/override/form/Panel.js"></script>
        <script type="text/javascript" src="app.js"></script>
    <!-- </x-compile> -->
                <link rel="stylesheet" href="bootstrap.css">

    <link rel="stylesheet" href="resources/css/rowCSS.css" id="child-row">
    <link rel="stylesheet" href="resources/css/receiptGrid.css" id="receiptGrid">
    <link rel="stylesheet" href="resources/css/propertyGrid.css" id="propertyGrid">
    <link rel="stylesheet" href="resources/css/msgBox.css" id="msgBox">
    <link rel="stylesheet" href="resources/css/popWindow.css" id="popWindow">
    <link rel="stylesheet" href="resources/css/passwordPrompt.css" id="passwordPrompt">
    <link rel="stylesheet" href="resources/css/textStyles.css" id="textStyles">
</head>
<body>
</body>
</html>

Upon reading the thread in the sencha website, it seemed that I had to choose over the app.json and the index.html file. So I tried and deleted the "resources" and "css", contents first then the entire thing after, and attempted to build it but to no avail. I still got the error.

I'm really dumbfounded and I'm trying to build and publish my web application so that the user doesn't have to load a whole lot of ExtJS scripts, a good chunk of which are not of use anyway.

I'm also confused because both index.html and app.json(along with app.js and app.json.meta) seem to be auto be auto generated by Sencha Architect 3.1. It does not make sense for an IDE to generate files that will seem to conflict later on during the build and publish process.

Also, the Sencha Thread is already 8 years old. I don't know how to go about this beyond the tips provided there.

Can anyone help me with this issue? Any help is very much appreciated. Thank you.

解决方案

I've solved this by downgrading to Sencha CMD 5.1.0.26 (which solved another issue with 5.1.1.39, see [1]) and removing the js and css parts completely:

{
   ...
   "theme": "ext-theme-classic-3ea6533d-fc56-477c-9143-5085a431c7f3"
}

And yes, its a shame how a product that costs so much is maintained so incredibly bad.

[1] https://www.sencha.com/forum/showthread.php?297673-Bug-Incorrect-encoding-on-concatenated-JS-file-in-Sencha-Cmd-5.1.1.39&p=1087279&viewfull=1#post1087279

这篇关于Sencha CMD - 构建错误:混合模式x编译和微载入标记目前不受支持的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆