René's URL Explorer Experiment


Title: Cannot read property 'mainScreen' of undefined - when trying to get dark mode status · Issue #275 · NativeScript/theme · GitHub

Open Graph Title: Cannot read property 'mainScreen' of undefined - when trying to get dark mode status · Issue #275 · NativeScript/theme

X Title: Cannot read property 'mainScreen' of undefined - when trying to get dark mode status · Issue #275 · NativeScript/theme

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): CLI: 7.0.8 Cross-platform modules: "@nativescrip...

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): CLI: 7.0...

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): CLI: 7.0...

Opengraph URL: https://github.com/NativeScript/theme/issues/275

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Cannot read property 'mainScreen' of undefined - when trying to get dark mode status","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 - CLI: 7.0.8\r\n - Cross-platform modules: \"@nativescript/firebase\": \"rc\"\r\n - Android Runtime: -\r\n - iOS Runtime: \r\n```\r\nInstalling on device E2CFC71D-3295-443F-B505-B3B83D45553F...\r\nSuccessfully installed on device with identifier 'E2CFC71D-3295-443F-B505-B3B83D45553F'.\r\nRestarting application on device E2CFC71D-3295-443F-B505-B3B83D45553F...\r\nSuccessfully synced application org.nativescript.aaa on device E2CFC71D-3295-443F-B505-B3B83D45553F.\r\n(RunningBoardServices) [com.apple.runningboard:connection] Identity resolved as application\u003corg.nativescript.aaa\u003e\r\n***** Fatal JavaScript exception - application has been terminated. *****\r\nNativeScript encountered a fatal error: Uncaught TypeError: Cannot read property 'mainScreen' of undefined\r\nat\r\n../node_modules/@nativescript/theme/index.js(file: node_modules/@nativescript/theme/index.js:25:33)\r\nat __webpack_require__(file: app/webpack/bootstrap:74:0)\r\nat ../node_modules/babel-loader/lib/index.js!../node_modules/vue-loader/lib/index.js?!./components/Home.vue?vue\u0026type=script\u0026lang=js\u0026(file:///app/bundle.js:42:77)\r\nat __webpack_require__(file: app/webpack/bootstrap:74:0)\r\nat ./components/Home.vue?vue\u0026type=script\u0026lang=js\u0026(file: app/components/Home.vue?5625:1:0)\r\nat __webpack_require__(file: app/webpack/bootstrap:74:0)\r\nat ./components/Home.vue(file: app/components/Home.vue:1:0)\r\nat __webpack_require__(file: app/webpack/bootstrap:74:0)\r\nat (file: app/app.js:1:0)\r\nat ./app.js(file:///app/bundle.js:403:30)\r\nat __webpack_require__(file: app/webpack/bootstrap:74:0)\r\nat checkDeferredModules(file: app/webpack/bootstrap:43:0)\r\nat webpackJsonpCallback(file: app/webpack/bootstrap:30:0)\r\nat (file:///app/bundle.js:2:57)\r\nat require(:1:137)\r\n(CoreFoundation) *** Terminating app due to uncaught exception 'NativeScript encountered a fatal error: Uncaught TypeError: Cannot read property 'mainScreen' of undefined\r\nat\r\n../node_modules/@nativescript/theme/index.js(file: node_modules/@nativescript/theme/index.js:25:33)\r\nat __webpack_require__(file: app/webpack/bootstrap:74:0)\r\nat ../node_modules/babel-loader/lib/index.js!../node_modules/vue-loader/lib/index.js?!./components/Home.vue?vue\u0026type=script\u0026lang=js\u0026(file:///app/bundle.js:42:77)\r\nat __webpack_require__(file: app/webpack/bootstrap:74:0)\r\nat ./components/Home.vue?vue\u0026type=script\u0026lang=js\u0026(file: app/components/Home.vue?5625:1:0)\r\nat __webpack_require__(file: app/webpack/bootstrap:74:0)\r\nat ./components/Home.vue(file: app/components/Home.vue:1:0)\r\nat __webpack_require__(file: app/webpack/bootstrap:74:0)\r\nat (file: app/app.js:1:0)\r\nat ./app.js(file:///app/bundle.js:403:30)\r\nat __webpack_require__(file: app/webpack/bootstrap:74:0)\r\nat checkDeferredModules(file: app/webpack/bootstrap:43:0)\r\nat webpackJsonpCallback(file: app/webpack/bootstrap:30:0)\r\nat (file:///app/bu\u003c…\u003e\r\n\r\n```\r\n - Plugin(s):\r\n    \"@nativescript/core\": \"~7.0.0\",\r\n    \"@nativescript/firebase\": \"rc\",\r\n    \"@nativescript/theme\": \"nativescript-vue\" (tried with rc also),\r\n    \"nativescript-vue\": \"~2.8.0\"\r\n\r\n**Describe the bug**\r\nPretty much stock nativescript-vue installation with NativeScript CLI 7.0.8.\r\nIn my main screen I import the theme using `import Theme from \"@nativescript/theme\";`\r\nThen I'm trying to get the dark mode status like this:\r\n```\r\nmounted () {\r\n      console.log(Theme.getMode())\r\n},\r\n```\r\nI get an error:\r\n`(CoreFoundation) *** Terminating app due to uncaught exception 'NativeScript encountered a fatal error: Uncaught TypeError: Cannot read property 'mainScreen' of undefined`\r\n\r\n**To Reproduce**\r\nJust try to use `Theme.getMode()` on NativeScript 7 with Vue (might be the same with others as well)\r\n\r\n**Expected behavior**\r\nHaven't used this feature before, I guess it will give you a string of \"ns-light\" or \"ns-dark\" and won't break your app.\r\n\r\n**Sample project**\r\nCan't reproduce this on play.nativescript.org as it uses the old NativeScript. As far as I've tested it seems to be the issue only with NativeScript 7\r\n","author":{"url":"https://github.com/butaminas","@type":"Person","name":"butaminas"},"datePublished":"2020-09-13T12:26:00.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":10},"url":"https://github.com/275/theme/issues/275"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:8c02d952-40b7-8e35-14e4-b5e57dafeab3
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idDD44:187D38:5EFC13:8937E2:6A62296A
html-safe-nonce3aa906faa402f9428c83ca2500935ce8e3ed9a6f361a7542cfd97d47911fd429
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJERDQ0OjE4N0QzODo1RUZDMTM6ODkzN0UyOjZBNjIyOTZBIiwidmlzaXRvcl9pZCI6IjQ2MDI2NzAwMDc2ODQ1NzM1NDYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac1e911d7f39a93f296554225df4c3318d6ac8c4c3cf647d93a99d83c92791ab23
hovercard-subject-tagissue:700560589
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/theme/275/issue_layout
twitter:imagehttps://opengraph.githubassets.com/e1c810f284a2636d42d95cc75071859955c5369632dd0bf9f4cd275180cbf120/NativeScript/theme/issues/275
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/e1c810f284a2636d42d95cc75071859955c5369632dd0bf9f4cd275180cbf120/NativeScript/theme/issues/275
og:image:altEnvironment 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): CLI: 7.0...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamebutaminas
hostnamegithub.com
expected-hostnamegithub.com
None21839f35c93a14bc8ff43c34023894ded3dead0c48f637766489aed48b50c808
turbo-cache-controlno-preview
go-importgithub.com/NativeScript/theme git https://github.com/NativeScript/theme.git
octolytics-dimension-user_id7392261
octolytics-dimension-user_loginNativeScript
octolytics-dimension-repository_id64524068
octolytics-dimension-repository_nwoNativeScript/theme
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id64524068
octolytics-dimension-repository_network_root_nwoNativeScript/theme
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
releasef870b4bd550634487383a2b5db62e680537bec89
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/NativeScript/theme/issues/275#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FNativeScript%2Ftheme%2Fissues%2F275
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
Code QualityEnforce quality at mergehttps://github.com/features/code-quality
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
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
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://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
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FNativeScript%2Ftheme%2Fissues%2F275
Sign up https://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%2Ftheme
Reloadhttps://github.com/NativeScript/theme/issues/275
Reloadhttps://github.com/NativeScript/theme/issues/275
Reloadhttps://github.com/NativeScript/theme/issues/275
Please reload this pagehttps://github.com/NativeScript/theme/issues/275
NativeScript https://github.com/NativeScript
themehttps://github.com/NativeScript/theme
Please reload this pagehttps://github.com/NativeScript/theme/issues/275
Notifications https://github.com/login?return_to=%2FNativeScript%2Ftheme
Fork 44 https://github.com/login?return_to=%2FNativeScript%2Ftheme
Star 129 https://github.com/login?return_to=%2FNativeScript%2Ftheme
Code https://github.com/NativeScript/theme
Issues 40 https://github.com/NativeScript/theme/issues
Pull requests 0 https://github.com/NativeScript/theme/pulls
Actions https://github.com/NativeScript/theme/actions
Projects https://github.com/NativeScript/theme/projects
Security and quality 0 https://github.com/NativeScript/theme/security
Insights https://github.com/NativeScript/theme/pulse
Code https://github.com/NativeScript/theme
Issues https://github.com/NativeScript/theme/issues
Pull requests https://github.com/NativeScript/theme/pulls
Actions https://github.com/NativeScript/theme/actions
Projects https://github.com/NativeScript/theme/projects
Security and quality https://github.com/NativeScript/theme/security
Insights https://github.com/NativeScript/theme/pulse
Cannot read property 'mainScreen' of undefined - when trying to get dark mode statushttps://github.com/NativeScript/theme/issues/275#top
https://github.com/butaminas
butaminashttps://github.com/butaminas
on Sep 13, 2020https://github.com/NativeScript/theme/issues/275#issue-700560589
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.