angular-vis
angular-vis copied to clipboard
Including in Angular 2 with SystemJs
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
any thoughts?
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: