Release build works, but not with web pack


Hi there, I’m facing a strange issue, my app works fine when building a release version, but as soon as I try to enable web pack (I tried with and without uglify and with / without snapshot, clean build, removing hooks and node_modules etc…) it builds the app, puts the icon on my iPhone, but crashes instantly when opening the app.

The error I get is :
JS ERROR Error: Building UI from XML. @file:///app/home/home-page.xml:64:17

No other messages…

When I look on line 64 of home-page.xml it is my radlistview:

<lv:RadListView id="listview" class="list-group" items="{{ dataItems }}" selectionBehavior="Press" multipleSelection="false" itemSelected="pressHandler" pullToRefresh="true" pullToRefreshInitiated="onPullToRefreshInitiated">` 

the lv namespace is added to the page tag:


My package.json:

  "description": "NativeScript Application",
  "license": "SEE LICENSE IN <your-license-filename>",
  "readme": "NativeScript Application",
  "repository": "<fill-your-repository-here>",
  "nativescript": {
    "id": "",
    "tns-ios": {
      "version": "3.4.1"
  "scripts": {
    "lint": "eslint \"app/**/*.js\""
  "dependencies": {
    "nativescript-barcodescanner": "2.7.5",
    "nativescript-directions": "1.2.0",
    "nativescript-drawingpad": "2.1.1",
    "nativescript-phone": "1.3.1",
    "nativescript-theme-core": "~1.0.4",
    "nativescript-ui-listview": "3.5.1",
    "nativescript-ui-sidedrawer": "3.5.1",
    "tns-core-modules": "^3.4.1"
  "devDependencies": {
    "copy-webpack-plugin": "~4.3.0",
    "css-loader": "~0.28.7",
    "eslint": "~4.9.0",
    "extract-text-webpack-plugin": "~3.0.2",
    "nativescript-dev-sass": "~1.3.5",
    "nativescript-dev-webpack": "^0.9.1",
    "nativescript-worker-loader": "~0.8.1",
    "raw-loader": "~0.5.1",
    "resolve-url-loader": "~2.2.1",
    "sass-loader": "~6.0.6",
    "uglifyjs-webpack-plugin": "~1.1.6",
    "webpack": "~3.10.0",
    "webpack-bundle-analyzer": "^2.9.1",
    "webpack-sources": "~1.1.0"

Remember the radlistview works without any issue on my different app views, including pulltorefresh etc… when building a normal release build without webpack. But for speed improvement I would like to add web pack if possible.

If anyone knows what’s up let me know, thanks in advance.


Could you post full error message or create playground ??


Thanks for your reply, as mentioned, I don’t get any other message, that is the full error message :frowning: I don’t think a playground will help, since the develop and release build all work, except when I enable web pack…

Here is my build log, maybe there you can find something off?: