godbasin / angular-select2

select2 in angular(>=2.0-release).
MIT License
15 stars 11 forks source link

Error while building #19

Closed rajhim closed 6 years ago

rajhim commented 6 years ago

ERROR in Error: Error encountered resolving symbol values statically. Calling function 'ɵmakeDecorator', function calls are not supported. Consider replacing the function or lambda with a reference to an exported function, resolving symbol Component..

/node_modules/angular-select2-component/src/select2.component.ts

rajhim commented 6 years ago

ng build --prod u can check by this

godbasin commented 6 years ago

It seems that I've mixed something experimental up in my package. Please try version 1.1.3. And ng build --prod is not supported now because I haven't make it compatible with AOT. So It only works with ng build without production. :sob: :

rajhim commented 6 years ago

so when u r gona update for prod ?

rajhim commented 6 years ago

ERROR Error: Uncaught (in promise): Error: StaticInjectorError[ElementRef]: StaticInjectorError[ElementRef]: NullInjectorError: No provider for ElementRef! Error: StaticInjectorError[ElementRef]: StaticInjectorError[ElementRef]: NullInjectorError: No provider for ElementRef!

what is this error ???????

rajhim commented 6 years ago

iam not able to solve this problem ...

godbasin commented 6 years ago

ERROR Error: Uncaught (in promise): Error: StaticInjectorError[ElementRef]: StaticInjectorError[ElementRef]: NullInjectorError: No provider for ElementRef! Error: StaticInjectorError[ElementRef]: StaticInjectorError[ElementRef]: NullInjectorError: No provider for ElementRef!

This seems to be something missing in your project. Do you have a demo?

godbasin commented 6 years ago

And I don't have experience with AoT. It might take times.