tb / ng2-nouislider

Angular2 noUiSlider directive
http://tb.github.io/ng2-nouislider/
MIT License
184 stars 114 forks source link

ng-packagr breaks library: Compiled with warnings #165

Open tasosgig opened 6 years ago

tasosgig commented 6 years ago

Type of Issue

[x] Bug Report
[ ] Feature Request

Versions

ng-packagr: "^1.6.0"
node: v8.10.0
@angular: ^4.2.4
rxjs: ^5.5.6
zone.js: ^0.8.19

Description

When i export my project as a package no error occurs!

When i install my package to a newly created project i get many warnings of this:

WARNING in ./node_modules/interactiveminingv3/interactiveminingv3.es5.js
11226:20-24 "export 'default' (imported as 'core') was not found in '@angular/core'

WARNING in ./node_modules/interactiveminingv3/interactiveminingv3.es5.js
11235:41-46 "export 'default' (imported as 'forms') was not found in '@angular/forms'

Compiled with warnings

So the newly created project doesn't work!

As i can see in interactiveminingv3.es5.js your library does not respect the Angular Library Format: 1 core and forms are not imported correctly!

Here are the uses of core import in your library: 2

Here are the uses of forms import in your library: 3