Title: Element ref was specified as a string (map) but no owner was set · Issue #199 · fullstackreact/google-maps-react · GitHub
Open Graph Title: Element ref was specified as a string (map) but no owner was set · Issue #199 · fullstackreact/google-maps-react
X Title: Element ref was specified as a string (map) but no owner was set · Issue #199 · fullstackreact/google-maps-react
Description: Hi, I'm getting an error when I attempt to load the Map component. Uncaught Error: Element ref was specified as a string (map) but no owner was set. This could happen for one of the following reasons: You may be adding a ref to a functio...
Open Graph Description: Hi, I'm getting an error when I attempt to load the Map component. Uncaught Error: Element ref was specified as a string (map) but no owner was set. This could happen for one of the following reaso...
X Description: Hi, I'm getting an error when I attempt to load the Map component. Uncaught Error: Element ref was specified as a string (map) but no owner was set. This could happen for one of the following r...
Opengraph URL: https://github.com/fullstackreact/google-maps-react/issues/199
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Element ref was specified as a string (map) but no owner was set","articleBody":"Hi, I'm getting an error when I attempt to load the Map component.\r\n\r\n> Uncaught Error: Element ref was specified as a string (map) but no owner was set. This could happen for one of the following reasons:\r\n> 1. You may be adding a ref to a functional component\r\n> 2. You may be adding a ref to a component that was not created inside a component's render method\r\n> 3. You have multiple copies of React loaded\r\n> See https://fb.me/react-refs-must-have-owner for more information.\r\n at invariant (VM56119 invariant.js:42)\r\n at coerceRef (VM56126 react-dom.development.js:7350)\r\n at createChild (VM56126 react-dom.development.js:7555)\r\n at reconcileChildrenArray (VM56126 react-dom.development.js:7805)\r\n at reconcileChildFibers (VM56126 react-dom.development.js:8121)\r\n at reconcileChildrenAtExpirationTime (VM56126 react-dom.development.js:8240)\r\n at reconcileChildren (VM56126 react-dom.development.js:8231)\r\n at updateHostComponent (VM56126 react-dom.development.js:8539)\r\n at beginWork (VM56126 react-dom.development.js:8986)\r\n at performUnitOfWork (VM56126 react-dom.development.js:11814)\r\n\r\nBelow is my dependency list. I attempted to degrade react to ^15.0.0, but other packages broke.\r\n\r\n\"dependencies\": {\r\n \"chart.js\": \"^2.7.2\",\r\n \"google-maps-react\": \"^2.0.0\",\r\n \"highcharts\": \"^6.1.0\",\r\n \"moment\": \"^2.22.1\",\r\n \"prop-types\": \"^15.6.1\",\r\n \"react\": \"^16.3.2\",\r\n \"react-chartjs-2\": \"^2.7.0\",\r\n \"react-dates\": \"^16.6.1\",\r\n \"react-dom\": \"^16.3.2\",\r\n \"react-highcharts\": \"^16.0.2\",\r\n \"react-router-dom\": \"^4.2.2\",\r\n \"react-vis\": \"^1.9.2\"\r\n },\r\n \"devDependencies\": {\r\n \"babel-core\": \"^6.26.0\",\r\n \"babel-loader\": \"^7.1.4\",\r\n \"babel-preset-env\": \"^1.6.1\",\r\n \"babel-preset-react\": \"^6.24.1\",\r\n \"css-loader\": \"^0.28.11\",\r\n \"eslint\": \"^4.19.1\",\r\n \"eslint-plugin-react\": \"^7.7.0\",\r\n \"file-loader\": \"^1.1.11\",\r\n \"html-webpack-plugin\": \"^3.2.0\",\r\n \"node-sass\": \"^4.8.3\",\r\n \"sass-loader\": \"^7.0.1\",\r\n \"style-loader\": \"^0.21.0\",\r\n \"url-loader\": \"^1.0.1\",\r\n \"webpack\": \"^4.6.0\",\r\n \"webpack-cli\": \"^2.0.14\",\r\n \"webpack-dev-server\": \"^3.1.3\"\r\n }\r\n\r\nand here's my Map component:\r\n\r\n```\r\nimport React, { Component } from 'react';\r\nimport { GoogleApiWrapper, Map as GoogleMap } from 'google-maps-react';\r\n\r\nclass Map extends Component {\r\n render() {\r\n const style = {\r\n width: '100vw',\r\n height: '100vh'\r\n };\r\n return (\r\n \u003cdiv style={style}>\r\n \u003cGoogleMap \r\n google={this.props.google}\r\n />\r\n \u003c/div>\r\n );\r\n }\r\n}\r\n\r\nexport default GoogleApiWrapper({\r\n apiKey: \"MY_API_KEY\"\r\n})(Map);\r\n```","author":{"url":"https://github.com/fergatron","@type":"Person","name":"fergatron"},"datePublished":"2018-04-22T05:07:13Z","url":"https://github.com/fullstackreact/google-maps-react/issues/199"}
| 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:2031a7b8-f1c0-d073-32ed-b0a8f615a128 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8846:84C13:64918C:83F6AA:6AFE6D93 |
| html-safe-nonce | cfbcceb42b8e20353d7c828705e35ed59551a68b1593f3fffba5d18862704369 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4ODQ2Ojg0QzEzOjY0OTE4Qzo4M0Y2QUE6NkFGRTZEOTMiLCJ2aXNpdG9yX2lkIjoiMTg3OTUxNjk1MDgyMDcxMTgyNyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | ba1660a2d6a486a0fdee0b597e98c6f9964b01801b03b68d716033193c9344aa |
| hovercard-subject-tag | issue:316549633 |
| 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/fullstackreact/google-maps-react/199/issue_layout |
| twitter:image | https://opengraph.githubassets.com/92a1edbddd5ecf3f16244958201d9a35d1001c7ec068076581a985958cf114a6/fullstackreact/google-maps-react/issues/199 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/92a1edbddd5ecf3f16244958201d9a35d1001c7ec068076581a985958cf114a6/fullstackreact/google-maps-react/issues/199 |
| og:image:alt | Hi, I'm getting an error when I attempt to load the Map component. Uncaught Error: Element ref was specified as a string (map) but no owner was set. This could happen for one of the following reaso... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | fergatron |
| hostname | github.com |
| expected-hostname | github.com |
| None | b3c0f155eafc27e60db6e254d1ffff0e072e9ab3b4018a5ee518797c19d89f86 |
| turbo-cache-control | no-preview |
| go-import | github.com/fullstackreact/google-maps-react git https://github.com/fullstackreact/google-maps-react.git |
| octolytics-dimension-user_id | 16674738 |
| octolytics-dimension-user_login | fullstackreact |
| octolytics-dimension-repository_id | 57070925 |
| octolytics-dimension-repository_nwo | fullstackreact/google-maps-react |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 57070925 |
| octolytics-dimension-repository_network_root_nwo | fullstackreact/google-maps-react |
| 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 | 4a10310af51a1bfffbedc4fd81cb582acf0cb0ff |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width