Title: Self is undefined in ts worker example (angular) · Issue #25 · NativeScript/worker-loader · GitHub
Open Graph Title: Self is undefined in ts worker example (angular) · Issue #25 · NativeScript/worker-loader
X Title: Self is undefined in ts worker example (angular) · Issue #25 · NativeScript/worker-loader
Description: any idea why self is udefined on this line: const context: Worker = self as any; on this file adding webpack entries to compile it with ts-loader this is what I get in js: "use strict"; Object.defineProperty(exports, "__esModule", { valu...
Open Graph Description: any idea why self is udefined on this line: const context: Worker = self as any; on this file adding webpack entries to compile it with ts-loader this is what I get in js: "use strict"; Object.defi...
X Description: any idea why self is udefined on this line: const context: Worker = self as any; on this file adding webpack entries to compile it with ts-loader this is what I get in js: "use strict"; O...
Opengraph URL: https://github.com/NativeScript/worker-loader/issues/25
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Self is undefined in ts worker example (angular)","articleBody":"any idea why self is udefined on this line:\r\n```\r\nconst context: Worker = self as any;\r\n```\r\non this [file](https://github.com/NativeScript/worker-loader/blob/master/demo-angular/app/workers/typescript.worker.ts)\r\n\r\nadding webpack entries to compile it with ts-loader this is what I get in js:\r\n```\r\n\"use strict\";\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nrequire(\"globals\");\r\nvar context = self;\r\ncontext.onmessage = function (msg) {\r\n setTimeout(function () {\r\n console.log(\"Inside TS worker...\");\r\n global.postMessage(\"TS Worker\");\r\n }, 500);\r\n};\r\n```\r\n\r\nI've been following step by step the angular+webpack+ts guidelines and the demo and still haven't got it to work...","author":{"url":"https://github.com/raulvc","@type":"Person","name":"raulvc"},"datePublished":"2018-10-23T10:51:08Z","url":"https://github.com/NativeScript/worker-loader/issues/25"}
| 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:96ccb10f-63d2-8182-14a1-7dc6f57b1289 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D008:EDA7A:1A12F65:211B195:6B014A63 |
| html-safe-nonce | aa87f66f1d4c556885fcff692bff2694cbd9e72b5dd12e94057ee1ae964c08fd |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMDA4OkVEQTdBOjFBMTJGNjU6MjExQjE5NTo2QjAxNEE2MyIsInZpc2l0b3JfaWQiOiI1Njg0NTc2ODY1MTcyNDA4OTMxIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | a31125392e4edc7c45494d377ccb82e628ffdb1d5f7457b497b25282c85c57c1 |
| hovercard-subject-tag | issue:372935709 |
| 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/worker-loader/25/issue_layout |
| twitter:image | https://opengraph.githubassets.com/66228831644973459f92946199684f36f81339934c5dee8f5dbf81c27d861c20/NativeScript/worker-loader/issues/25 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/66228831644973459f92946199684f36f81339934c5dee8f5dbf81c27d861c20/NativeScript/worker-loader/issues/25 |
| og:image:alt | any idea why self is udefined on this line: const context: Worker = self as any; on this file adding webpack entries to compile it with ts-loader this is what I get in js: "use strict"; Object.defi... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | raulvc |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| turbo-cache-control | no-preview |
| go-import | github.com/NativeScript/worker-loader git https://github.com/NativeScript/worker-loader.git |
| octolytics-dimension-user_id | 7392261 |
| octolytics-dimension-user_login | NativeScript |
| octolytics-dimension-repository_id | 99676258 |
| octolytics-dimension-repository_nwo | NativeScript/worker-loader |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 99676258 |
| octolytics-dimension-repository_network_root_nwo | NativeScript/worker-loader |
| 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 | 8c77c9e8439031ad54c75a250694842892f693e1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width