Title: document.createElement is not a function · Issue #1137 · NativeScript/nativescript-angular · GitHub
Open Graph Title: document.createElement is not a function · Issue #1137 · NativeScript/nativescript-angular
X Title: document.createElement is not a function · Issue #1137 · NativeScript/nativescript-angular
Description: I get the following error when attempting to run my app: JavaScript error: file:///app/tns_modules/rxjs/util/Immediate.js:56:82: JS ERROR TypeError: document.createElement is not a function. (In 'document.createElement('script')', 'docum...
Open Graph Description: I get the following error when attempting to run my app: JavaScript error: file:///app/tns_modules/rxjs/util/Immediate.js:56:82: JS ERROR TypeError: document.createElement is not a function. (In 'd...
X Description: I get the following error when attempting to run my app: JavaScript error: file:///app/tns_modules/rxjs/util/Immediate.js:56:82: JS ERROR TypeError: document.createElement is not a function. (In ...
Opengraph URL: https://github.com/NativeScript/nativescript-angular/issues/1137
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"document.createElement is not a function","articleBody":"I get the following error when attempting to run my app:\r\n`JavaScript error:\r\nfile:///app/tns_modules/rxjs/util/Immediate.js:56:82: JS ERROR TypeError: document.createElement is not a function. (In 'document.createElement('script')', 'document.createElement' is undefined)`\r\n\r\nThis is an app that has been working great for a while, i just attempting to update the libraries and now this is happening. It seems that `Immediate.js` in rxjs is attempting to use `document.createElement` which obviously doesn't work in nativeScript.\r\n\r\n```\r\n***** Fatal JavaScript exception - application has been terminated. *****\r\nNative stack trace:\r\n1 0x107f6f7b4 -[TNSRuntime executeModule:referredBy:]\r\n2 0x103f2b4e1 main\r\n3 0x109afed81 start\r\nJavaScript stack trace:\r\n1 canUseReadyStateChange@file:///app/tns_modules/rxjs/util/Immediate.js:56:82\r\n2 ImmediateDefinition@file:///app/tns_modules/rxjs/util/Immediate.js:30:49\r\n3 anonymous@file:///app/tns_modules/rxjs/util/Immediate.js:208:44\r\n4 evaluate@[native code]\r\n5 moduleEvaluation@[native code]\r\n6 @[native code]\r\n7 promiseReactionJob@[native code]\r\n8 require@[native code]\r\n9 anonymous@file:///app/tns_modules/rxjs/scheduler/AsapAction.js:7:26\r\n10 evaluate@[native code]\r\n11 moduleEvaluation@[native code]\r\n12 @[native code]\r\n13 promiseReactionJob@[native code]\r\n14 require@[native code]\r\n15 anonymous@file:///app/tns_modules/rxjs/scheduler/asap.js:2:27\r\n16 evaluate@[native code]\r\n17 moduleEvaluation@[native code]\r\n18 @[native code]\r\n19 promiseReactionJob@[native code]\r\n20 require@[native code]\r\n21 anonymous@file:///app/tns_modules/rxjs/observable/SubscribeOnObservable.js:8:21\r\n22 evaluate@[native code]\r\n23 moduleEvaluation@[native code]\r\n24 @[native code]\r\n25 promiseReactionJob@[native code]\r\n26 require@[native code]\r\n27 anonymous@file:///app/tns_modules/rxjs/operators/subscribeOn.js:2:38\r\n28 evaluate@[native code]\r\n29 moduleEvaluation@[native code]\r\n30 @[native code]\r\n31 promiseReactionJob@[native code]\r\n32 require@[native code]\r\n33 anonymous@file:///app/tns_modules/rxjs/operator/subscribeOn.js:2:28\r\n34 evaluate@[native code]\r\n35 moduleEvaluation@[native code]\r\n36 @[native code]\r\n37 promiseReactionJob@[native code]\r\n38 require@[native code]\r\n39 anonymous@file:///app/tns_modules/rxjs/add/operator/subscribeOn.js:3:28\r\n40 evaluate@[native code]\r\n41 moduleEvaluation@[native code]\r\n42 @[native code]\r\n43 promiseReactionJob@[native code]\r\n44 require@[native code]\r\n45 anonymous@file:///app/tns_modules/rxjs/./Rx.js:121:8\r\n46 evaluate@[native code]\r\n47 moduleEvaluation@[native code]\r\n48 @[native code]\r\n49 promiseReactionJob@[native code]\r\n50 require@[native code]\r\n51 anonymous@file:///app/tns_modules/@suna/quickride-ts-libcore/src/socket/reconnecting.js:3:21\r\n52 evaluate@[native code]\r\n53 moduleEvaluation@[native code]\r\n54 @[native code]\r\n55 promiseReactionJob@[native code]\r\n56 require@[native code]\r\n57 anonymous@file:///app/tns_modules/@suna/quickride-ts-libcore/src/socket/driver-updates.js:14:29\r\n58 evaluate@[native code]\r\n59 moduleEvaluation@[native code]\r\n60 @[native code]\r\n61 promiseReactionJob@[native code]\r\n62 require@[native code]\r\n63 anonymous@file:///app/tns_modules/@suna/quickride-ts-libcore/src/socket/index.js:6:17\r\n64 evaluate@[native code]\r\n65 moduleEvaluation@[native code]\r\n66 @[native code]\r\n67 promiseReactionJob@[native code]\r\n68 require@[native code]\r\n69 anonymous@file:///app/tns_modules/@suna/quickride-ts-libcore/src/index.js:10:17\r\n70 evaluate@[native code]\r\n71 moduleEvaluation@[native code]\r\n72 @[native code]\r\n73 promiseReactionJob@[native code]\r\n74 require@[native code]\r\n75 anonymous@file:///app/app.module.js:7:37\r\n76 evaluate@[native code]\r\n77 moduleEvaluation@[native code]\r\n78 @[native code]\r\n79 promiseReactionJob@[native code]\r\n80 require@[native code]\r\n81 anonymous@file:///app/main.js:8:27\r\n82 evaluate@[native code]\r\n83 moduleEvaluation@[native code]\r\n84 @[native code]\r\n85 promiseReactionJob@[native code]\r\nJavaScript error:\r\nfile:///app/tns_modules/rxjs/util/Immediate.js:56:82: JS ERROR TypeError: document.createElement is not a function. (In 'document.createElement('script')', 'document.createElement' is undefined)\r\n```","author":{"url":"https://github.com/briandilley","@type":"Person","name":"briandilley"},"datePublished":"2017-12-24T03:32:34Z","url":"https://github.com/NativeScript/nativescript-angular/issues/1137"}
| 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:beaaf2a2-e1bd-da16-7ae1-ed644d5c5117 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 966A:3F8AB1:22B43EC:2C19869:6B01644C |
| html-safe-nonce | 4baa0b73de1199154f68c84791d365b14afdc54efca3947411332d307e960f9f |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NjZBOjNGOEFCMToyMkI0M0VDOjJDMTk4Njk6NkIwMTY0NEMiLCJ2aXNpdG9yX2lkIjoiNjYxMDUxNTYzMTcyMjgxNjU4OSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | fdc1642d9ff2163ee47fa32bd1903aa9c9cc48c8e7440806e97f6067b81cd410 |
| hovercard-subject-tag | issue:284340218 |
| 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-angular/1137/issue_layout |
| twitter:image | https://opengraph.githubassets.com/7b6e6cc4f2c35cea6d5f130341efc6d1fd71b78b65127fa05885258fb87a8215/NativeScript/nativescript-angular/issues/1137 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/7b6e6cc4f2c35cea6d5f130341efc6d1fd71b78b65127fa05885258fb87a8215/NativeScript/nativescript-angular/issues/1137 |
| og:image:alt | I get the following error when attempting to run my app: JavaScript error: file:///app/tns_modules/rxjs/util/Immediate.js:56:82: JS ERROR TypeError: document.createElement is not a function. (In 'd... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | briandilley |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| turbo-cache-control | no-preview |
| go-import | github.com/NativeScript/nativescript-angular git https://github.com/NativeScript/nativescript-angular.git |
| octolytics-dimension-user_id | 7392261 |
| octolytics-dimension-user_login | NativeScript |
| octolytics-dimension-repository_id | 35951404 |
| octolytics-dimension-repository_nwo | NativeScript/nativescript-angular |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 35951404 |
| octolytics-dimension-repository_network_root_nwo | NativeScript/nativescript-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 | 8c77c9e8439031ad54c75a250694842892f693e1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width