angular-vis icon indicating copy to clipboard operation
angular-vis copied to clipboard

Including in Angular 2 with SystemJs

Open lennartboeckx opened this issue 7 years ago • 1 comments

Hey there,

I'm trying to get ng2-vis in my application using SystemJs. It is finding the files correctly but when i try to load it it throws an error that 'vis' isn't found. It's trying to find the map 'vis' on my main map instead of in the ng-vis map.

this is my systemjs.config file map: { 'ng2-vis': 'lib/ng2-vis' }, packages: { 'ng2-vis': { main: './ng2-vis', defaultExtension: 'js' } }

and this is the error errong2vis

any thoughts?

lennartboeckx avatar Mar 27 '17 12:03 lennartboeckx

Are you able to provide the code that has this issue? A plunkr/codepen/jsbin that reproduces this issue would also be helpful. You can see the systemJS config here that is used to create the ng2-vis bundle located in the bundles directory in the npm package. Maybe I have to change vis: path.resolve('node_modules/vis/index.js') to vis: path.resolve('node_modules/vis/dist/vis.js') ... :thinking:

seveves avatar Mar 29 '17 11:03 seveves