Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Maps aren't showing up for local instance #8

Closed
DavidLemayian opened this issue Sep 25, 2016 · 2 comments
Closed

Maps aren't showing up for local instance #8

DavidLemayian opened this issue Sep 25, 2016 · 2 comments

Comments

@DavidLemayian
Copy link

Hi. Great project. Was working on adding a map and received the following error in browser console locally:

app.bundle.js:61248 Uncaught (in promise) TypeError: Cannot read property 'feature' of undefined(…)
(anonymous function) @ app.bundle.js:61248

Which points to this:

var topoJSONFeatures = _topojson2.default.feature(topoJSONData, topoJSONData.objects[mapType]).features;

Any idea what could be causing this?

@caspg
Copy link
Owner

caspg commented Oct 3, 2016

There is some issue with importing topojson here.

To fix this you can change
import topojson from 'topojson' to const topojson = require('topojson')

@caspg
Copy link
Owner

caspg commented Oct 24, 2016

Fixed 18d506a

@caspg caspg closed this as completed Oct 24, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants