René's URL Explorer Experiment


Title: [AOT] multiple workers won't compile using aot · Issue #5247 · NativeScript/nativescript-cli · GitHub

Open Graph Title: [AOT] multiple workers won't compile using aot · Issue #5247 · NativeScript/nativescript-cli

X Title: [AOT] multiple workers won't compile using aot · Issue #5247 · NativeScript/nativescript-cli

Description: While working with workers in nativescript we stuck with an error when there is more than one worker defined and being used. There is no issue while compiling with JIT but by adding the AOT flag the project won't compile and following er...

Open Graph Description: While working with workers in nativescript we stuck with an error when there is more than one worker defined and being used. There is no issue while compiling with JIT but by adding the AOT flag th...

X Description: While working with workers in nativescript we stuck with an error when there is more than one worker defined and being used. There is no issue while compiling with JIT but by adding the AOT flag th...

Opengraph URL: https://github.com/NativeScript/nativescript-cli/issues/5247

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[AOT] multiple workers won't compile using aot","articleBody":"While working with workers in nativescript we stuck with an error when there is more than one worker defined and being used. There is no issue while compiling with JIT but by adding the AOT flag the project won't compile and following error raises\r\n\r\n```\r\nChild worker:\r\n                             Asset      Size  Chunks             Chunk Names\r\n    0adb156fd1eb2394a395.worker.js  4.21 MiB    main  [emitted]  main\r\n    Entrypoint main = 0adb156fd1eb2394a395.worker.js\r\n    [../node_modules/ts-loader/index.js!./workers/second.worker.ts] ../node_modules/ts-loader!./workers/second.worker.ts 430 bytes {main} [built]\r\n    [./package.json] 139 bytes {main} [optional] [built]\r\n    [./shared.ts] 130 bytes {main} [built]\r\n        + 252 hidden modules\r\nChild worker:\r\n                             Asset      Size  Chunks             Chunk Names\r\n    5caf84999f4cdd72d8dd.worker.js  4.21 MiB    main  [emitted]  main\r\n    Entrypoint main = 5caf84999f4cdd72d8dd.worker.js\r\n    [../node_modules/ts-loader/index.js!./workers/typescript.worker.ts] ../node_modules/ts-loader!./workers/typescript.worker.ts 416 bytes {main} [built]\r\n    [./package.json] 139 bytes {main} [optional] [built]\r\n    [./shared.ts] 130 bytes {main} [built]\r\n        + 252 hidden modules\r\n\r\n    ERROR in Internal Error: already initialized!\r\nWebpack compilation complete.\r\nExecuting webpack failed with exit code 2.\r\n```\r\n\r\nso this issue happens if there is more than one javascript or typescript worker defined. \r\n\r\n**Sample project**\r\nI have modified the official webworker sample ( https://github.com/NativeScript/worker-loader/tree/master/demo-angular ) and just added a second typescript worker. the sample source code can be found at https://github.com/trodellez/twoworker\r\n\r\nso basically I have added a second ts worker \r\n```typescript\r\nimport \"tns-core-modules/globals\";\r\nimport { sharedFunction } from \"../shared\";\r\n\r\nconst context: Worker = self as any;\r\n\r\ncontext.onmessage = msg => {\r\n    sharedFunction(\"worker\");\r\n    setTimeout(() => {\r\n        console.log(\"Inside Second TS worker...\");\r\n        console.log(msg);\r\n        (\u003cany>global).postMessage(\"Second TS Worker\");\r\n    }, 500)\r\n};\r\n```\r\nand added a method to worker.service.ts to initialize it\r\n```typescript\r\ninitSecondTsWorker() {\r\n        if (this.secondTsWorker) {\r\n            return this.secondTsWorker;\r\n        }\r\n\r\n        // add if building with webpack\r\n        this.secondTsWorker = new SecondTsWorker();\r\n\r\n        return this.secondTsWorker;\r\n    }\r\n```\r\nthen the project won't compile anymore with aot flag\r\n```\r\ntns build android --env.aot\r\n```\r\nany help would be really appreciated","author":{"url":"https://github.com/m0-h0","@type":"Person","name":"m0-h0"},"datePublished":"2020-02-11T15:56:38Z","url":"https://github.com/NativeScript/nativescript-cli/issues/5247"}

react-profiling0
react-import-mapreact,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-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:8c82b971-8658-ab15-f22c-92b43d418325
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idA704:38C5CF:20CB1D9:299EF27:6B015694
html-safe-nonceab9b9334426520024165ed832a74570ee38b8987d2508815a929fa6bc92db423
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNzA0OjM4QzVDRjoyMENCMUQ5OjI5OUVGMjc6NkIwMTU2OTQiLCJ2aXNpdG9yX2lkIjoiNDE0MzYwNTA2NTM3MTk2NTA3NiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmaca4aae3227bfb4d9deadd599b54654d7115468336b4f398611971ef943a166adc
hovercard-subject-tagissue:564055028
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/NativeScript/nativescript-cli/5247/issue_layout
twitter:imagehttps://opengraph.githubassets.com/1cb2e15ac51b711ae044f0cbdb3b735e2cd2a0af894cc5920d43386efbea8d20/NativeScript/nativescript-cli/issues/5247
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/1cb2e15ac51b711ae044f0cbdb3b735e2cd2a0af894cc5920d43386efbea8d20/NativeScript/nativescript-cli/issues/5247
og:image:altWhile working with workers in nativescript we stuck with an error when there is more than one worker defined and being used. There is no issue while compiling with JIT but by adding the AOT flag th...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamem0-h0
hostnamegithub.com
expected-hostnamegithub.com
Nonecc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c
turbo-cache-controlno-preview
go-importgithub.com/NativeScript/nativescript-cli git https://github.com/NativeScript/nativescript-cli.git
octolytics-dimension-user_id7392261
octolytics-dimension-user_loginNativeScript
octolytics-dimension-repository_id21347346
octolytics-dimension-repository_nwoNativeScript/nativescript-cli
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id21347346
octolytics-dimension-repository_network_root_nwoNativeScript/nativescript-cli
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release8c77c9e8439031ad54c75a250694842892f693e1
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/NativeScript/nativescript-cli/issues/5247#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FNativeScript%2Fnativescript-cli%2Fissues%2F5247
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FNativeScript%2Fnativescript-cli%2Fissues%2F5247
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=NativeScript%2Fnativescript-cli
Reloadhttps://github.com/NativeScript/nativescript-cli/issues/5247
Reloadhttps://github.com/NativeScript/nativescript-cli/issues/5247
Reloadhttps://github.com/NativeScript/nativescript-cli/issues/5247
NativeScripthttps://github.com/NativeScript
nativescript-clihttps://github.com/NativeScript/nativescript-cli
Codehttps://github.com/NativeScript/nativescript-cli
Issues357 (357)https://github.com/NativeScript/nativescript-cli/issues
Pull requests37 (37)https://github.com/NativeScript/nativescript-cli/pulls
Actionshttps://github.com/NativeScript/nativescript-cli/actions
Projectshttps://github.com/NativeScript/nativescript-cli/projects
Security and qualityhttps://github.com/NativeScript/nativescript-cli/security
Insightshttps://github.com/NativeScript/nativescript-cli/insights
https://github.com/NativeScript/nativescript-cli
New issuehttps://github.com/login?return_to=https://github.com/NativeScript/nativescript-cli/issues/5247
New issuehttps://github.com/login?return_to=https://github.com/NativeScript/nativescript-cli/issues/5247
[AOT] multiple workers won't compile using aothttps://github.com/NativeScript/nativescript-cli/issues/5247#top
https://github.com/rosen-vladimirov
bughttps://github.com/NativeScript/nativescript-cli/issues?q=state%3Aopen%20label%3A%22bug%22
https://github.com/m0-h0
m0-h0https://github.com/m0-h0
on Feb 11, 2020https://github.com/NativeScript/nativescript-cli/issues/5247#issue-564055028
https://github.com/NativeScript/worker-loader/tree/master/demo-angularhttps://github.com/NativeScript/worker-loader/tree/master/demo-angular
https://github.com/trodellez/twoworkerhttps://github.com/trodellez/twoworker
NickIlievhttps://github.com/NickIliev
NativeScript/NativeScripthttps://github.com/NativeScript/NativeScript
on Feb 12, 2020https://github.com/NativeScript/nativescript-cli/issues/5247#event-3031133559
https://github.com/rosen-vladimirov
rosen-vladimirovhttps://github.com/rosen-vladimirov
on Feb 19, 2020https://github.com/NativeScript/nativescript-cli/issues/5247#issuecomment-588292507
rosen-vladimirovhttps://github.com/rosen-vladimirov
bughttps://github.com/NativeScript/nativescript-cli/issues?q=state%3Aopen%20label%3A%22bug%22
on Feb 19, 2020https://github.com/NativeScript/nativescript-cli/issues/5247#event-3052254448
rosen-vladimirovhttps://github.com/rosen-vladimirov
on Feb 19, 2020https://github.com/NativeScript/nativescript-cli/issues/5247#event-3052254518
https://github.com/rosen-vladimirov
rosen-vladimirovhttps://github.com/rosen-vladimirov
on Feb 21, 2020https://github.com/NativeScript/nativescript-cli/issues/5247#issuecomment-589677324
https://github.com/m0-h0
m0-h0https://github.com/m0-h0
on Feb 25, 2020https://github.com/NativeScript/nativescript-cli/issues/5247#issuecomment-590890733
@rosen-vladimirovhttps://github.com/rosen-vladimirov
dtopuzovhttps://github.com/dtopuzov
completedhttps://github.com/NativeScript/nativescript-cli/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Feb 26, 2020https://github.com/NativeScript/nativescript-cli/issues/5247#event-3072374865
Sign up for freehttps://github.com/signup?return_to=https://github.com/NativeScript/nativescript-cli/issues/5247
Sign in to commenthttps://github.com/login?return_to=https://github.com/NativeScript/nativescript-cli/issues/5247
rosen-vladimirovhttps://github.com/rosen-vladimirov
bughttps://github.com/NativeScript/nativescript-cli/issues?q=state%3Aopen%20label%3A%22bug%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.