Skip to content

3rd party libs & angular2-toaster #834

Description

@sysmat
  1. OS: Windows 7
  2. ng --version
    angular-cli: 1.0.0-beta.1
    node: 5.9.1
    os: win32 x64
  3. I'm trying to use angular2-toaster as 3rd party libs but with no luck

3.1 I installed by npm

3.2 In angular-cli-build.js I put:

return new Angular2App(defaults, { vendorNpmFiles: [ 'systemjs/dist/system-polyfills.js', 'systemjs/dist/system.src.js', 'zone.js/dist/*.js', 'es6-shim/es6-shim.js', 'reflect-metadata/*.js', 'rxjs/**/*.js', '@angular/**/*.js', '@angular2-material/**/*.js', 'angular2-toaster/**/*.js"' ] });

but in dist/vendor there is no angular2-toaster, but in my *.ts files I can do import

import {ToasterContainerComponent, ToasterService} from 'angular2-toaster/angular2-toaster';

3.3 I also try in system-config.ts for map, packages but still not working
4. LOG:
GET http://localhost:4200/node_modules/angular2-toaster/lib/toaster.css
zone.js:101 GET http://localhost:4200/vendor/angular2-toaster/angular2-toaster 404 (Not Found)
zone.js:461 Unhandled Promise rejection: Error: XHR error (404 Not Found) loading http://localhost:4200/vendor/angular2-toaster/angular2-toaster

What I'm doing wrong?

Regards, Tomaž

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions