Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Function calls are not supported in decorators but BusyConfig was called. #20

Open
edjm1971 opened this issue Dec 13, 2019 · 2 comments

Comments

@edjm1971
Copy link

I'm running under the following configurations
Angular CLI: 6.2.9
Node: 8.9.4
ng-busy: 6.2.0

In following your example with the following code
`@NgModule({

imports: [

        ...

        NgBusyModule.forRoot(new BusyConfig({...`

Running the build ng build --prod results in a build fail stating

Function calls are not supported in decorators but BusyConfig was called.

Is there something I'm missing that ought to be done?

@edjm1971
Copy link
Author

Also, it looks like this line
constructor(@Inject('instanceConfigHolder') private instanceConfigHolder: InstanceConfigHolderService) {

Should read as
constructor(@Inject(InstanceConfigHolderService) private instanceConfigHolder: InstanceConfigHolderService) {

@eduartdoria
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants