Title: Global variables not defined in CLI 8.8 · Issue #5813 · NativeScript/nativescript-cli · GitHub
Open Graph Title: Global variables not defined in CLI 8.8 · Issue #5813 · NativeScript/nativescript-cli
X Title: Global variables not defined in CLI 8.8 · Issue #5813 · NativeScript/nativescript-cli
Description: Issue Description After bumping packages, I found that some packages/plugins only work when I uninstall ns cli globally and install "nativescript": "8.7.2" (downgrade from cli 8.8). Reproduction https://github.com/asharghi/print-star-dem...
Open Graph Description: Issue Description After bumping packages, I found that some packages/plugins only work when I uninstall ns cli globally and install "nativescript": "8.7.2" (downgrade from cli 8.8). Reproduction ht...
X Description: Issue Description After bumping packages, I found that some packages/plugins only work when I uninstall ns cli globally and install "nativescript": "8.7.2" (downgrade from cli 8...
Opengraph URL: https://github.com/NativeScript/nativescript-cli/issues/5813
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Global variables not defined in CLI 8.8","articleBody":"### Issue Description\r\n\r\nAfter bumping packages, I found that some packages/plugins only work when I uninstall ns cli globally and install \"nativescript\": \"8.7.2\" (downgrade from cli 8.8). \r\n\r\n### Reproduction\r\n\r\nhttps://github.com/asharghi/print-star-demo\r\n\r\n1. Clone and run with 'ns run iOS' with CLI 8.8\r\n2. Tap on \"Test\" button and see \"Error\" in the console log. ReferenceError: MTPrinterStar is not defined\r\n3. Uninstall CLI 8.8 and install CLI 8.7.2\r\n4. Run 'ns clean \u0026\u0026 ns run ios'\r\n5. Tap on \"Test\" button again and see \"Success\" in the console log\r\n\r\n### Relevant log output (if applicable)\r\n\r\n_No response_\r\n\r\n### Environment\r\n\r\n```yaml\r\nOS: macOS 14.6.1\r\nCPU: (10) arm64 Apple M1 Max\r\nShell: /bin/zsh\r\nnode: 18.18.1\r\nnpm: 9.8.1\r\nnativescript: Not Found\r\n\r\n# android\r\njava: 17.0.11\r\nndk: Not Found\r\napis: Not Found\r\nbuild_tools: Not Found\r\nsystem_images: Not Found\r\n\r\n# ios\r\nxcode: 15.3/15E204a\r\ncocoapods: 1.15.2\r\npython: 2.7.18\r\npython3: 3.12.4\r\nruby: 2.7.8\r\nplatforms: \r\n - DriverKit 23.4\r\n - iOS 17.4\r\n - macOS 14.4\r\n - tvOS 17.4\r\n - visionOS 1.1\r\n - watchOS 10.4\r\n```\r\n\r\n### Dependencies\r\n\r\n```json\r\n\"dependencies\": {\r\n \"@nativescript-community/perms\": \"^2.3.3\",\r\n \"@nativescript/core\": \"~8.8.0\",\r\n \"@nativescript/theme\": \"^3.1.0\",\r\n \"nativescript\": \"8.7.2\",\r\n \"nativescript-permissions\": \"^1.3.12\",\r\n \"nativescript-print-star\": \"file:local_modules/nativescript-print-star-latest.tgz\",\r\n \"nativescript-vue\": \"~2.9.3\"\r\n},\r\n\"devDependencies\": {\r\n \"@nativescript/ios\": \"8.8.1\",\r\n \"@nativescript/types\": \"~8.8.0\",\r\n \"@nativescript/webpack\": \"~5.0.0\",\r\n \"@types/node\": \"~17.0.21\",\r\n \"nativescript-vue-template-compiler\": \"~2.9.3\",\r\n \"typescript\": \"~5.4.0\",\r\n \"vue\": \"~2.6.12\"\r\n}\r\n```\r\n\r\n### Please accept these terms\r\n\r\n- [X] I have searched the [existing issues](https://github.com/NativeScript/nativescript-cli/issues) as well as [StackOverflow](https://stackoverflow.com/questions/tagged/nativescript) and this has not been posted before\r\n- [X] This is a bug report\r\n- [X] I agree to follow this project's [Code of Conduct](https://github.com/NativeScript/NativeScript/blob/master/tools/notes/CONTRIBUTING.md#coc)","author":{"url":"https://github.com/asharghi","@type":"Person","name":"asharghi"},"datePublished":"2024-08-28T10:45:33.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/5813/nativescript-cli/issues/5813"}
| 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:011f4671-b242-9dfd-7a39-7ae01291f4bd |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B234:365318:2EC05F:3F35E2:696E7128 |
| html-safe-nonce | acfd3eaa0c83aa3fa635886f17f889146c56663860f31c362588389afe11cb3e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMjM0OjM2NTMxODoyRUMwNUY6M0YzNUUyOjY5NkU3MTI4IiwidmlzaXRvcl9pZCI6IjYyMTk3NTEwNTQ2MTA2OTAzNDQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | e740323ae831d0cbbce80760781087a993a6e2b971d4da171655ec5cee80dc83 |
| hovercard-subject-tag | issue:2491730295 |
| 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-cli/5813/issue_layout |
| twitter:image | https://opengraph.githubassets.com/0cba87648c3ad438739436c3a4e9b5b021f5c9100a529baf4c0748003b3bbefa/NativeScript/nativescript-cli/issues/5813 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/0cba87648c3ad438739436c3a4e9b5b021f5c9100a529baf4c0748003b3bbefa/NativeScript/nativescript-cli/issues/5813 |
| og:image:alt | Issue Description After bumping packages, I found that some packages/plugins only work when I uninstall ns cli globally and install "nativescript": "8.7.2" (downgrade from cli 8.8). Reproduction ht... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | asharghi |
| hostname | github.com |
| expected-hostname | github.com |
| None | 01185010a96388a2a8cd8bd7f5824fdf090522b219f9aecf8c7ff1857aeb489b |
| turbo-cache-control | no-preview |
| go-import | github.com/NativeScript/nativescript-cli git https://github.com/NativeScript/nativescript-cli.git |
| octolytics-dimension-user_id | 7392261 |
| octolytics-dimension-user_login | NativeScript |
| octolytics-dimension-repository_id | 21347346 |
| octolytics-dimension-repository_nwo | NativeScript/nativescript-cli |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 21347346 |
| octolytics-dimension-repository_network_root_nwo | NativeScript/nativescript-cli |
| 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 | 673a80c1bce2a1e6a48b530ce2b72bf8fd253386 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width