Skip to content

Cannot read property 'bundle' of undefined #317

@amanjain325

Description

@amanjain325

Environment
{
"name": "sample-hybrid",
"version": "0.0.0",
"license": "MIT",
"scripts": {
"android": "tns run android --bundle",
"ios": "tns run ios --bundle",
"ng": "ng",
"start": "ng serve",
"build": "ng build --prod",
"test": "ng test",
"lint": "ng lint",
"build:ssrQA": "npm run build:client-and-server-bundlesQA && npm run webpack:server",
"build:ssrSTAG": "npm run build:client-and-server-bundlesSTAG && npm run webpack:server",
"build:ssrPROD": "npm run build:client-and-server-bundlesPROD && npm run webpack:server",
"build:ssrPRODTEST": "npm run build:client-and-server-bundlesPRODTEST && npm run webpack:server",
"serve:ssr": "node dist/server",
"build:client-and-server-bundlesQA": "ng build --configuration=qa && ng run sample-hybrid:server:qa",
"build:client-and-server-bundlesSTAG": "ng build --configuration=stag && ng run sample-hybrid:server:stag",
"build:client-and-server-bundlesPROD": "ng build --configuration=production && ng run sample-hybrid:server:production",
"build:client-and-server-bundlesPRODTEST": "ng build --configuration=production-test && ng run sample-hybrid:server:production-test",
"webpack:server": "webpack --config webpack.server.config.js --progress --colors",
"e2e": "ng e2e"
},
"private": true,
"dependencies": {
"nativescript-angular": "~6.1.0",
"nativescript-theme-core": "~1.0.4",
"reflect-metadata": "~0.1.8",
"tns-core-modules": "~4.2.0",
"@angular/animations": "^6.1.7",
"@angular/common": "^6.1.7",
"@angular/compiler": "^6.1.7",
"@angular/core": "^6.1.7",
"@angular/forms": "^6.1.7",
"@angular/http": "^6.1.7",
"@angular/platform-browser": "^6.1.7",
"@angular/platform-browser-dynamic": "^6.1.7",
"@angular/platform-server": "^6.1.7",
"@angular/pwa": "^0.8.9",
"@angular/router": "^6.1.7",
"@angular/service-worker": "^6.1.7",
"@angular/upgrade": "^6.1.7",
"@nguniversal/express-engine": "^6.1.0",
"@nguniversal/module-map-ngfactory-loader": "^6.1.0",
"@popperjs/core": "2.6.0",
"@types/googlemaps": "^3.30.8",
"@types/jquery": "3.3.31",
"bootstrap": "3.4.0",
"bunyan": "^1.8.12",
"core-js": "^2.4.1",
"jquery": "3.4.1",
"moment": "2.24.0",
"ng-fullcalendar": "^1.7.1",
"ngx-bootstrap": "3.2.0",
"ngx-cookie": "^2.0.1",
"ngx-nvd3": "^1.0.9",
"ngx-tour-core": "4.0.1",
"ngx-tour-ngx-bootstrap": "4.1.0",
"rxjs": "^6.3.2",
"ts-loader": "^5.1.1",
"zone.js": "^0.8.26"
},
"devDependencies": {
"@angular-devkit/build-angular": "~0.8.0",
"@angular/cli": "^6.2.2",
"@angular/compiler-cli": "^6.1.7",
"@angular/language-service": "^6.1.7",
"@nativescript/android": "8.0.0",
"@nativescript/schematics": "^0.3.4",
"@types/jasmine": "^2.8.17",
"@types/jasminewd2": "~2.0.2",
"@types/node": "~6.0.60",
"codelyzer": "^4.0.1",
"directory-to-s3": "^1.0.0-rc4",
"jasmine-core": "~2.8.0",
"jasmine-spec-reporter": "~4.2.1",
"karma": "~2.0.0",
"karma-chrome-launcher": "~2.2.0",
"karma-coverage-istanbul-reporter": "^1.2.1",
"karma-jasmine": "~1.1.0",
"karma-jasmine-html-reporter": "^0.2.2",
"nativescript-dev-webpack": "^0.16.0",
"protractor": "~5.1.2",
"rxjs-tslint": "^0.1.5",
"ts-node": "~7.0.0",
"tslint": "~5.11.0",
"typescript": "~2.9.2",
"webpack-cli": "^3.1.0"
},
"nativescript": {
"id": "org.nativescript.ngsample"
}
}

Describe the bug
I have added @nativescript/schematics version number - 0.3.4 in my angular 6 project, while using tns run android --bundle, An error is coming after Project successfully prepared (android)

Screenshot 2021-05-29 at 2 08 07 PM

To Reproduce
tns run android --bundle

Expected behavior
Build should be run successfully.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions