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

import statement not working #17

Closed
parliament718 opened this issue Oct 10, 2016 · 2 comments
Closed

import statement not working #17

parliament718 opened this issue Oct 10, 2016 · 2 comments

Comments

@parliament718
Copy link

parliament718 commented Oct 10, 2016

Issue #16 was closed and I cannot re-open despite the possibility that this is a real issue in d3-request.

import * as d3select from 'd3-selection';
import * as d3request from 'd3-request';

var mysvg = d3select.select("#mysvg"); //works
var request = d3request.xml('assets/emojis/laughing.svg'); //doesnt work

Why would d3-select work correctly and d3-request loading from UMD module?
I'm using the standard ionic bundler via rollup https://github.com/driftyco/ionic-app-scripts/blob/master/config/rollup.config.js

My package.json is consistent between the 2 packages, which leads me to believe the problem is in d3-request:

"dependencies": {
"d3-request": "^1.0.2",
"d3-selection": "^1.0.2",
...
},
"devDependencies": {
"typescript": "^2.0.3",
"@types/d3-request": "^1.0.1",
"@types/d3-selection": "^1.0.5",
"@ionic/app-scripts": "latest"
},

@mbostock
Copy link
Member

Sorry, but this is an issue with your bundler, and not this library. Unfortunately I am not familiar with Ionic and cannot advise you on correct usage. Please try Stack Overflow or a forum with familiarity with Ionic.

@parliament718
Copy link
Author

Since d3-selection works just fine I don't believe it to be problem with my usage.
I have tried stackoverflow and have an open bounty for 100 on this question that's been open for 3 days.

Please take a look
http://stackoverflow.com/questions/39909200/d3-4-0-import-statement-gives-moduleexports-wrapper

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants