Title: can't import es6modules that have a single component · Issue #185 · hyperstack-org/hyperstack · GitHub
Open Graph Title: can't import es6modules that have a single component · Issue #185 · hyperstack-org/hyperstack
X Title: can't import es6modules that have a single component · Issue #185 · hyperstack-org/hyperstack
Description: If an es6 module has a single component (and its set to the default for the module) we don't automatically import it. Fix is to add this check in ReactWrapper.eval_native_component component = `component.default` if `component.__esModule...
Open Graph Description: If an es6 module has a single component (and its set to the default for the module) we don't automatically import it. Fix is to add this check in ReactWrapper.eval_native_component component = `com...
X Description: If an es6 module has a single component (and its set to the default for the module) we don't automatically import it. Fix is to add this check in ReactWrapper.eval_native_component component = ...
Opengraph URL: https://github.com/hyperstack-org/hyperstack/issues/185
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"can't import es6modules that have a single component ","articleBody":"If an es6 module has a single component (and its set to the default for the module) we don't automatically import it.\r\n\r\nFix is to add this check in `ReactWrapper.eval_native_component`\r\n\r\n```ruby\r\ncomponent = `component.default` if `component.__esModule` \r\n```\r\n\r\nworkaround is to either use the import directive in the manifest (which takes care of this case) or do a `require('foo').default`\r\n\r\nsee for details\r\nhttps://stackoverflow.com/questions/40294870/module-exports-vs-export-default-in-node-js-and-es6\r\n","author":{"url":"https://github.com/catmando","@type":"Person","name":"catmando"},"datePublished":"2019-05-03T22:36:09.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/185/hyperstack/issues/185"}
| 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:b19af344-5818-72bd-8f7e-4a9295c8d840 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9952:D7AB6:1BA470A:2319FC1:699182D7 |
| html-safe-nonce | 478d18e5e05a58a9a3e143f704b6443ed08614f21b2021c1f9aab29c3dda1934 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5OTUyOkQ3QUI2OjFCQTQ3MEE6MjMxOUZDMTo2OTkxODJENyIsInZpc2l0b3JfaWQiOiI0Mzk0NDg0NDk3Njg4NTAxMzYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | d66c265968ad6eb3cba428f9f3cc3f12c08f60b2f11f9c184cd06d29d065f552 |
| hovercard-subject-tag | issue:440247107 |
| 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/hyperstack-org/hyperstack/185/issue_layout |
| twitter:image | https://opengraph.githubassets.com/5a3534abc1880524f853c1bb54dc209ccc0ac2105a2b9ad3f6cdd7521aa3d7f9/hyperstack-org/hyperstack/issues/185 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/5a3534abc1880524f853c1bb54dc209ccc0ac2105a2b9ad3f6cdd7521aa3d7f9/hyperstack-org/hyperstack/issues/185 |
| og:image:alt | If an es6 module has a single component (and its set to the default for the module) we don't automatically import it. Fix is to add this check in ReactWrapper.eval_native_component component = `com... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | catmando |
| hostname | github.com |
| expected-hostname | github.com |
| None | 42c603b9d642c4a9065a51770f75e5e27132fef0e858607f5c9cb7e422831a7b |
| turbo-cache-control | no-preview |
| go-import | github.com/hyperstack-org/hyperstack git https://github.com/hyperstack-org/hyperstack.git |
| octolytics-dimension-user_id | 34562730 |
| octolytics-dimension-user_login | hyperstack-org |
| octolytics-dimension-repository_id | 145879576 |
| octolytics-dimension-repository_nwo | hyperstack-org/hyperstack |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 145879576 |
| octolytics-dimension-repository_network_root_nwo | hyperstack-org/hyperstack |
| 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 | 848bc6032dcc93a9a7301dcc3f379a72ba13b96e |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width