Title: Unable to build NativeScript 5.4 application with nativescript-angular 8.0.2 · Issue #1914 · NativeScript/nativescript-angular · GitHub
Open Graph Title: Unable to build NativeScript 5.4 application with nativescript-angular 8.0.2 · Issue #1914 · NativeScript/nativescript-angular
X Title: Unable to build NativeScript 5.4 application with nativescript-angular 8.0.2 · Issue #1914 · NativeScript/nativescript-angular
Description: Environment Provide version numbers for the following components (information can be retrieved by running tns info in your project folder or by inspecting the package.json of the project): CLI: 5.4.2 Cross-platform modules: 5.4.3 Android...
Open Graph Description: Environment Provide version numbers for the following components (information can be retrieved by running tns info in your project folder or by inspecting the package.json of the project): CLI: 5.4...
X Description: Environment Provide version numbers for the following components (information can be retrieved by running tns info in your project folder or by inspecting the package.json of the project): CLI: 5.4...
Opengraph URL: https://github.com/NativeScript/nativescript-angular/issues/1914
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Unable to build NativeScript 5.4 application with nativescript-angular 8.0.2","articleBody":"**Environment**\r\nProvide version numbers for the following components (information can be retrieved by running `tns info` in your project folder or by inspecting the `package.json` of the project):\r\n - CLI: 5.4.2\r\n - Cross-platform modules: 5.4.3\r\n - Android Runtime: 5.4.0\r\n - iOS Runtime: 5.4.2\r\n - Plugin(s):\r\n```JSON\r\n{\r\n \"nativescript\": {\r\n \"id\": \"org.nativescript.appNg54\",\r\n \"tns-android\": {\r\n \"version\": \"5.4.0\"\r\n },\r\n \"tns-ios\": {\r\n \"version\": \"5.4.2\"\r\n }\r\n },\r\n \"description\": \"NativeScript Application\",\r\n \"license\": \"SEE LICENSE IN \u003cyour-license-filename\u003e\",\r\n \"repository\": \"\u003cfill-your-repository-here\u003e\",\r\n \"dependencies\": {\r\n \"@angular/animations\": \"~8.0.0\",\r\n \"@angular/common\": \"~8.0.0\",\r\n \"@angular/compiler\": \"~8.0.0\",\r\n \"@angular/core\": \"~8.0.0\",\r\n \"@angular/forms\": \"~8.0.0\",\r\n \"@angular/http\": \"~8.0.0-beta.10\",\r\n \"@angular/platform-browser\": \"~8.0.0\",\r\n \"@angular/platform-browser-dynamic\": \"~8.0.0\",\r\n \"@angular/router\": \"~8.0.0\",\r\n \"nativescript-angular\": \"~8.0.0\",\r\n \"nativescript-theme-core\": \"~1.0.4\",\r\n \"reflect-metadata\": \"~0.1.12\",\r\n \"rxjs\": \"~6.5.0\",\r\n \"tns-core-modules\": \"~5.4.0\",\r\n \"zone.js\": \"~0.9.1\"\r\n },\r\n \"devDependencies\": {\r\n \"@angular/compiler-cli\": \"~8.0.0\",\r\n \"@ngtools/webpack\": \"~8.0.0\",\r\n \"nativescript\": \"^5.4.2\",\r\n \"nativescript-dev-typescript\": \"~0.10.0\",\r\n \"nativescript-dev-webpack\": \"~0.24.0\"\r\n },\r\n \"gitHead\": \"8c1a4866a66daab09bf5ef8e5a96472687192373\",\r\n \"readme\": \"NativeScript Application\"\r\n}\r\n```\r\n - NativeScript-Angular: 8.0.2\r\n - Angular: 8\r\n \r\n**Describe the bug**\r\nWhen trying to build NativeScript application created with 5.4, the application suddenly failed to build. In package.json of the project, the `nativescript-angular` is referenced with `~8.0.0`, which suddenly installed 8.0.2 of the package. After trying to build the application (with bundle workflow) an error occured:\r\n`tns build android`:\r\n```\r\nERROR in ../node_modules/nativescript-angular/element-registry.js\r\nModule not found: Error: Can't resolve 'tns-core-modules/ui/bottom-navigation' in 'D:\\Work\\nativescript-cli\\scratch\\appNg54\\node_modules\\nativescript-angular'\r\n @ ../node_modules/nativescript-angular/element-registry.js 142:57-105\r\n @ ../node_modules/nativescript-angular/renderer.js\r\n @ ../node_modules/nativescript-angular/nativescript.module.js\r\n @ ./app/app.module.ts\r\n @ ./main.ts\r\n\r\nERROR in ../node_modules/nativescript-angular/element-registry.js\r\nModule not found: Error: Can't resolve 'tns-core-modules/ui/tab-navigation-base/tab-content-item' in 'D:\\Work\\nativescript-cli\\scratch\\appNg54\\node_modules\\nativescript-angular'\r\n @ ../node_modules/nativescript-angular/element-registry.js 172:55-122\r\n @ ../node_modules/nativescript-angular/renderer.js\r\n @ ../node_modules/nativescript-angular/nativescript.module.js\r\n @ ./app/app.module.ts\r\n @ ./main.ts\r\n\r\nERROR in ../node_modules/nativescript-angular/element-registry.js\r\nModule not found: Error: Can't resolve 'tns-core-modules/ui/tab-navigation-base/tab-strip' in 'D:\\Work\\nativescript-cli\\scratch\\appNg54\\node_modules\\nativescript-angular'\r\n @ ../node_modules/nativescript-angular/element-registry.js 170:49-109\r\n @ ../node_modules/nativescript-angular/renderer.js\r\n @ ../node_modules/nativescript-angular/nativescript.module.js\r\n @ ./app/app.module.ts\r\n @ ./main.ts\r\n\r\nERROR in ../node_modules/nativescript-angular/element-registry.js\r\nModule not found: Error: Can't resolve 'tns-core-modules/ui/tab-navigation-base/tab-strip-item' in 'D:\\Work\\nativescript-cli\\scratch\\appNg54\\node_modules\\nativescript-angular'\r\n @ ../node_modules/nativescript-angular/element-registry.js 171:53-118\r\n @ ../node_modules/nativescript-angular/renderer.js\r\n @ ../node_modules/nativescript-angular/nativescript.module.js\r\n @ ./app/app.module.ts\r\n @ ./main.ts\r\n\r\nERROR in ../node_modules/nativescript-angular/element-registry.js\r\nModule not found: Error: Can't resolve 'tns-core-modules/ui/tabs' in 'D:\\Work\\nativescript-cli\\scratch\\appNg54\\node_modules\\nativescript-angular'\r\n @ ../node_modules/nativescript-angular/element-registry.js 173:45-80\r\n @ ../node_modules/nativescript-angular/renderer.js\r\n @ ../node_modules/nativescript-angular/nativescript.module.js\r\n @ ./app/app.module.ts\r\n @ ./main.ts\r\nWebpack compilation complete.\r\nExecuting webpack failed with exit code 2.\r\n```\r\n\r\n**To Reproduce**\r\n1. Install nativescript CLI 5.4.x: `npm i -g nativescript@5.4`\r\n2. Create new application with the currently installed CLI: `tns create myApp --ng`\r\n3. Try to build the application: `cd myApp \u0026\u0026 tns build android`\r\nThe build will fail.\r\n\r\n**Expected behavior**\r\nPatch version of the package should not break existing applications.\r\n\r\n**Workaround**: \r\nHardcode version 8.0.1 of `nativescript-angular` in the project's package.json:\r\n```\r\nnpm i --save --save-exact nativescript-angular@8.0.1\r\n```","author":{"url":"https://github.com/rosen-vladimirov","@type":"Person","name":"rosen-vladimirov"},"datePublished":"2019-07-22T20:07:07.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":4},"url":"https://github.com/1914/nativescript-angular/issues/1914"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:cfaa6386-b79a-e086-c4b6-793e28c99165 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B596:1419BC:37A4057:4D24A84:6977CBE4 |
| html-safe-nonce | 3237b427bd0076460a402bafd444c82d769000074a248ee4843ee467cb958218 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNTk2OjE0MTlCQzozN0E0MDU3OjREMjRBODQ6Njk3N0NCRTQiLCJ2aXNpdG9yX2lkIjoiOTAxNzgzNjMzNTcyNDQ4MTUwOCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | efcaef786d45c4239c9c70df483182a854fa10eeb34a4c95dc014259a8a358f9 |
| hovercard-subject-tag | issue:471296813 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/NativeScript/nativescript-angular/1914/issue_layout |
| twitter:image | https://opengraph.githubassets.com/b1659ab48e59c929d2d8d87c9823976742c7ab3542c3f9d48e02ec762aed8a35/NativeScript/nativescript-angular/issues/1914 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/b1659ab48e59c929d2d8d87c9823976742c7ab3542c3f9d48e02ec762aed8a35/NativeScript/nativescript-angular/issues/1914 |
| og:image:alt | Environment Provide version numbers for the following components (information can be retrieved by running tns info in your project folder or by inspecting the package.json of the project): CLI: 5.4... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | rosen-vladimirov |
| hostname | github.com |
| expected-hostname | github.com |
| None | 173f8c2eae2e017de550dd28a9ea88ad5c1e52c70df7ea05bcd820330b3b2fec |
| turbo-cache-control | no-preview |
| go-import | github.com/NativeScript/nativescript-angular git https://github.com/NativeScript/nativescript-angular.git |
| octolytics-dimension-user_id | 7392261 |
| octolytics-dimension-user_login | NativeScript |
| octolytics-dimension-repository_id | 35951404 |
| octolytics-dimension-repository_nwo | NativeScript/nativescript-angular |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 35951404 |
| octolytics-dimension-repository_network_root_nwo | NativeScript/nativescript-angular |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 7b19554cad55a536fac18eeedb416dd87c37b1f5 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width