NejcZdovc / ng2-select2

Select 2 wraper for angular2
MIT License
123 stars 93 forks source link

Anyone successfully created their own Angular 5 module with ng2-select2 inside... and then packagr'ed it? #116

Open warwickprice-kehe opened 6 years ago

warwickprice-kehe commented 6 years ago

Trying to create a set of standard Angular 5 modules to use in a new IT initiative. Wanted to use Select2 for the dropdown and so decided to use ng2-select2 to implement that. All works great local to my common components project. But when I try to package it up with npm run packagr I get the following error:

ENOENT: no such file or directory, open 'C:\Source\Workspaces\GitHub\xxxx\node_modules\lib \ng2-select2.component.ts'

I've tried adding:

"embedded": "Select2Component",

To the ng-package.json file.... I've tried Select2Module also and still get the same error. Obviously there is no lib within node_modules.

Anyone managed to get this to work?