首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >本地人webpack未能建立

本地人webpack未能建立
EN

Stack Overflow用户
提问于 2018-11-11 08:00:23
回答 2查看 570关注 0票数 0

项目正在与tns运行android一起愉快地构建。

为了减少启动时间,我已经安装了

npm安装

npm安装

然后tns运行android -bundle

而且越来越少的错误。.失败:生成失败,出现异常。

  • 出了什么问题:无法向守护进程发送消息。.

这是package.json

代码语言:javascript
运行
复制
{
  "nativescript": {
    "id": "com.business.bapp",
    "tns-android": {
      "version": "4.2.0"
    },
    "tns-ios": {
      "version": "4.2.0"
    }
  },
  "description": "NativeScript Application",
  "license": "SEE LICENSE IN <your-license-filename>",
  "repository": "<fill-your-repository-here>",
  "dependencies": {
    "@angular/animations": "~6.1.0",
    "@angular/common": "~6.1.0",
    "@angular/compiler": "~6.1.0",
    "@angular/core": "~6.1.0",
    "@angular/forms": "~6.1.0",
    "@angular/http": "~6.1.0",
    "@angular/platform-browser": "~6.1.0",
    "@angular/platform-browser-dynamic": "~6.1.0",
    "@angular/router": "~6.1.0",
    "nativescript-angular": "~6.1.0",
    "nativescript-phone": "^1.4.0",
    "nativescript-pro-ui": "^3.4.1",
    "nativescript-theme-core": "~1.0.4",
    "nativescript-ui-listview": "^3.7.2",
    "reflect-metadata": "~0.1.8",
    "rxjs": "~6.2.0",
    "tns-core-modules": "~4.2.0",
    "zone.js": "^0.8.26"
  },
  "devDependencies": {
    "@angular/compiler-cli": "~6.1.0",
    "@nativescript/schematics": "~0.3.0",
    "@ngtools/webpack": "~6.2.0",
    "mini-css-extract-plugin": "^0.4.4",
    "nativescript-dev-typescript": "~0.7.0",
    "nativescript-dev-webpack": "^0.17.0",
    "typescript": "~2.7.2",
    "webpack": "^4.25.1",
    "webpack-cli": "^3.1.2"
  },
  "readme": "NativeScript Application"
}

有关此错误的更多详细信息:

代码语言:javascript
运行
复制
> :app:preDebugBuild > Resolve files of :app:debugCompileClasspathipt\xxxxxxx\node_modules\tns-core-modules-w
E:\xxxxxx\platforms\android\app\src\main\java\com\tns\gen\com\telerik\widget\list\ListViewDataSourceAdapter_vendor_77572_32_ListViewDataSourceAdapter.java:41: error: getItemViewType(int) in ListViewDataSourceAdapter_vendor_77572_32_ListViewDataSourceAdapter cannot override getItemViewType(int) in ListViewDataSourceAdapter
        public int getItemViewType(int param_0)  {
                   ^
  overridden method is final
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
1 error

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:compileDebugJavaWithJavac'.
> Compilation failed; see the compiler error output for details.
EN

Stack Overflow用户

回答已采纳

发布于 2018-11-11 10:25:35

不推荐nativescript-pro-ui,请删除它,然后再试一次。

票数 1
EN
查看全部 2 条回答
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/53246856

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档