Title: Initialisation of static members broken after upgrading from v15.0.4 to v15.1.0 · Issue #48764 · angular/angular · GitHub
Open Graph Title: Initialisation of static members broken after upgrading from v15.0.4 to v15.1.0 · Issue #48764 · angular/angular
X Title: Initialisation of static members broken after upgrading from v15.0.4 to v15.1.0 · Issue #48764 · angular/angular
Description: Which @angular/* package(s) are the source of the bug? compiler, core Is this a regression? Yes Description After upgrading from v15.0.4 to v15.1.0, I do get compile errors for code like this: @Injectable export class MyService { private...
Open Graph Description: Which @angular/* package(s) are the source of the bug? compiler, core Is this a regression? Yes Description After upgrading from v15.0.4 to v15.1.0, I do get compile errors for code like this: @Inj...
X Description: Which @angular/* package(s) are the source of the bug? compiler, core Is this a regression? Yes Description After upgrading from v15.0.4 to v15.1.0, I do get compile errors for code like this: @Inj...
Opengraph URL: https://github.com/angular/angular/issues/48764
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Initialisation of static members broken after upgrading from v15.0.4 to v15.1.0","articleBody":"### Which @angular/* package(s) are the source of the bug?\r\n\r\ncompiler, core\r\n\r\n### Is this a regression?\r\n\r\nYes\r\n\r\n### Description\r\n\r\nAfter upgrading from v15.0.4 to v15.1.0, I do get compile errors for code like this:\r\n\r\n`\r\n@Injectable\r\nexport class MyService {\r\n private static MY_URL_SCHEME = 'my app://';\r\n private static MY_URL_SCHEME_LENGTH = MyService.MY_URL_SCHEME.length;\r\n}\r\n`\r\n\r\nError message during 'ng test':\r\n\r\n`TypeError: Cannot read properties of undefined (reading 'CUSTOM_URL_SCHEME')`\r\n\r\n### Please provide a link to a minimal reproduction of the bug\r\n\r\n_No response_\r\n\r\n### Please provide the exception or error you saw\r\n\r\n_No response_\r\n\r\n### Please provide the environment you discovered this bug in (run `ng version`)\r\n\r\nAngular CLI: 15.1.1\r\nNode: 16.18.1\r\nPackage Manager: npm 8.19.2\r\nOS: darwin arm64\r\n\r\nAngular: 15.1.0\r\n... animations, common, compiler, compiler-cli, core, forms\r\n... language-service, localize, platform-browser\r\n... platform-browser-dynamic, router, service-worker\r\n\r\nPackage Version\r\n---------------------------------------------------------\r\n@angular-devkit/architect 0.1501.1\r\n@angular-devkit/build-angular 15.1.1\r\n@angular-devkit/core 15.1.1\r\n@angular-devkit/schematics 15.1.1\r\n@angular/cli 15.1.1\r\n@schematics/angular 15.1.1\r\nrxjs 6.6.7\r\ntypescript 4.8.4\r\n \r\n\r\n### Anything else?\r\n\r\n_No response_","author":{"url":"https://github.com/heinerlamprecht","@type":"Person","name":"heinerlamprecht"},"datePublished":"2023-01-16T17:24:58Z","url":"https://github.com/angular/angular/issues/48764"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| 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:7baea5b8-412f-1b62-3f42-edfd9e88a3c7 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C344:157C65:89EBB0:B96331:6B00E4D6 |
| html-safe-nonce | 472f9f343efcdc4329ed74c5199029479eccf12edc3cfbc8a5a589af1b51e676 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMzQ0OjE1N0M2NTo4OUVCQjA6Qjk2MzMxOjZCMDBFNEQ2IiwidmlzaXRvcl9pZCI6IjI0MTk1NDU2NjQ1MTA4MTMzOTgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 7b907b4b7a659a45fa371a309f62eca2c77c9a4399d5913eb99c66e198f019d2 |
| hovercard-subject-tag | issue:1537669553 |
| 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/angular/angular/48764/issue_layout |
| twitter:image | https://opengraph.githubassets.com/fd049871797136ef5fca4acf037b6ae00029dd3a74813bb498eb83b74e830bea/angular/angular/issues/48764 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/fd049871797136ef5fca4acf037b6ae00029dd3a74813bb498eb83b74e830bea/angular/angular/issues/48764 |
| og:image:alt | Which @angular/* package(s) are the source of the bug? compiler, core Is this a regression? Yes Description After upgrading from v15.0.4 to v15.1.0, I do get compile errors for code like this: @Inj... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | heinerlamprecht |
| hostname | github.com |
| expected-hostname | github.com |
| None | 27088b6977484d0d3321d9a11c907c6d6637b315cfa359ef7952dbf6292f9b14 |
| turbo-cache-control | no-preview |
| go-import | github.com/angular/angular git https://github.com/angular/angular.git |
| octolytics-dimension-user_id | 139426 |
| octolytics-dimension-user_login | angular |
| octolytics-dimension-repository_id | 24195339 |
| octolytics-dimension-repository_nwo | angular/angular |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 24195339 |
| octolytics-dimension-repository_network_root_nwo | angular/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 | 624179fb8b88d26ba5bba08894eb60a1c5a1d93d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width