Gbuomprisco / ng2-expansion-panels

Expansion Panels component for Angular 2
18 stars 3 forks source link

404 #15

Closed marshall1980 closed 7 years ago

marshall1980 commented 7 years ago

So, I'm a little new to angular - I'm sure I did something wrong, but I followed the install instructions, and for some reason every time I run my app - I get the following in my console, and I can't figure out why.

zone.js:972 GET http://localhost:3000/node_modules/ng2-expansion-panels/ 404 (Not Found)

marshall1980 commented 7 years ago

And I solved my own issue :) - I had to add the following to system.config.js

paths: {
  // paths serve as alias
  'npm:': 'node_modules/'
},

...... map: { 'ng2-expansion-panels': 'npm:ng2-expansion-panels/dist/ng2-expansion-panels.bundle.js',

},