Title: Compile Error - Initializers are not allowed in ambient conditions · Issue #8840 · NativeScript/NativeScript · GitHub
Open Graph Title: Compile Error - Initializers are not allowed in ambient conditions · Issue #8840 · NativeScript/NativeScript
X Title: Compile Error - Initializers are not allowed in ambient conditions · Issue #8840 · NativeScript/NativeScript
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): $ nsc info ✔ Getting NativeScript components ver...
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): $ nsc in...
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): $ nsc in...
Opengraph URL: https://github.com/NativeScript/NativeScript/issues/8840
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Compile Error - Initializers are not allowed in ambient conditions","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\r\n$ nsc info\r\n✔ Getting NativeScript components versions information...\r\n✔ Component nativescript has 7.0.7 version and is up to date.\r\n✔ Component @nativescript/core has 7.0.1 version and is up to date.\r\n✔ Component @nativescript/ios has ~7.0.0 version and is up to date.\r\n✔ Component @nativescript/android has 7.0.0 version and is up to date.\r\n\r\n**Describe the bug**\r\n\u003c!-- A clear and concise description of what the bug is. Please, explain whether it's a build time error or a runtime error. More detailed logs can be easily obtained by following the instructions in this guide: https://docs.nativescript.org/get-support#how-to-obtain-diagnostic-reports. --\u003e\r\n\r\nUpon compile `ng build \u003cmyproj\u003e --prod` I get the following ...\r\n\r\n```\r\nERROR: node_modules/@nativescript/core/application/index.d.ts:60:42 - error TS1039: Initializers are not allowed in ambient contexts.\r\n\r\n60 export let autoSystemAppearanceChanged = true;\r\n```\r\n\r\n\r\n**To Reproduce**\r\n\u003c!-- Add commands used or steps taken to reproduce the behaviour. --\u003e\r\n\r\n**Expected behavior**\r\n\r\n**Sample project**\r\n\u003c!-- If possible, provide a link from the [Playground](https://play.nativescript.org) with reproduction of the problem. If not, consider attaching a sample project or link to a repository with such project. --\u003e\r\n\r\n**Additional context**\r\n\u003c!-- Add any other context about the problem here. --\u003e\r\n","author":{"url":"https://github.com/crowmagnumb","@type":"Person","name":"crowmagnumb"},"datePublished":"2020-09-09T22:17:34.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/8840/NativeScript/issues/8840"}
| 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:0443d7fe-29bc-8b8c-5330-6f38c0c7f9eb |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9608:2F2E8A:1CE7F5F:289711D:6A5FB99B |
| html-safe-nonce | c4e801bd06e5bff05d305f055607af728c0b236c2bdf1ac15d9685101ab9c1cc |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NjA4OjJGMkU4QToxQ0U3RjVGOjI4OTcxMUQ6NkE1RkI5OUIiLCJ2aXNpdG9yX2lkIjoiNzMwODUxNDQ4Mzc5NDU5MDEwNyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 1841a0208255d343dc87c4ebcc99bf99b01ae110ef1f1a1c28322b81f4520f3c |
| hovercard-subject-tag | issue:697197232 |
| 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/8840/issue_layout |
| twitter:image | https://opengraph.githubassets.com/8b3fd8299ca97a7ae55b0510526c07a42bd395788ea15992bdb5eb3706861c32/NativeScript/NativeScript/issues/8840 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/8b3fd8299ca97a7ae55b0510526c07a42bd395788ea15992bdb5eb3706861c32/NativeScript/NativeScript/issues/8840 |
| 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): $ nsc in... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | crowmagnumb |
| hostname | github.com |
| expected-hostname | github.com |
| None | e0cfc367faf9c4c774d2a903897aa214c786247c4f45ffcee48cda2b819fb0c8 |
| turbo-cache-control | no-preview |
| go-import | github.com/NativeScript/NativeScript git https://github.com/NativeScript/NativeScript.git |
| octolytics-dimension-user_id | 7392261 |
| octolytics-dimension-user_login | NativeScript |
| octolytics-dimension-repository_id | 31492490 |
| octolytics-dimension-repository_nwo | NativeScript/NativeScript |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 31492490 |
| octolytics-dimension-repository_network_root_nwo | NativeScript/NativeScript |
| 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 | 94569c859bc88d6bf7de7e0ce3f2a11cd529a131 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width