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 'InjectionToken' was called in 'AbTestsModule' #19

Open
markpesantes opened this issue Feb 19, 2020 · 2 comments

Comments

@markpesantes
Copy link

markpesantes commented Feb 19, 2020

Currently running Angular 7.2.7 and CLI version 7.3.4

I get the following error when including this in my app module root upon attempting to run the application:

ERROR in Error during template compile of 'AppModule'
  Function calls are not supported in decorators but 'InjectionToken' was called in 'AbTestsModule'
    'AbTestsModule' references 'CONFIG'
      'CONFIG' calls 'InjectionToken' at ../angular-ab-tests/angular-ab-tests.ts(4,27).

This is followed up by repeat ambient errors like:

node_modules/angular-ab-tests/node_modules/@angular/core/core.d.ts(1088,18): error TS1086: An accessor cannot be declared in an ambient context.
@raphzandrade
Copy link

raphzandrade commented Feb 20, 2020

Also having this problem :(

EDIT:
the versions i am using:
"@angular/cli": "~8.2.0",
"@angular/core": "^8.2.13",

@markpesantes
Copy link
Author

markpesantes commented Feb 26, 2020

@adrdilauro please let me know if you need more specific information about my setup

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