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

ERROR in production build #65

Closed
lanzosuarez opened this issue Oct 4, 2017 · 2 comments
Closed

ERROR in production build #65

lanzosuarez opened this issue Oct 4, 2017 · 2 comments

Comments

@lanzosuarez
Copy link

lanzosuarez commented Oct 4, 2017

Got this error with ng build --aot --prod

ERROR in Error encountered resolving symbol values statically. Expression form not supported (position 29:55 in the original .ts file), resolving symbol RecaptchaLoaderService

"@angular/animations": "^4.1.3",
"@angular/common": "^4.0.2",
"@angular/compiler": "^4.0.2",
"@angular/core": "^4.0.2",
"@angular/forms": "^4.0.2",
"@angular/http": "^4.0.2",
"@angular/platform-browser": "^4.0.2",
"@angular/platform-browser-dynamic": "^4.0.2",
"@angular/router": "^4.0.2"
}

"devDependencies": {
"@angular/cli": "^1.0.1",
"@angular/compiler-cli": "^4.0.2",
"@types/jasmine": "2.5.38",
"@types/jquery": "^2.0.46",
"@types/node": "~6.0.60",
"codelyzer": "~2.0.0",
"jasmine-core": "~2.5.2",
"jasmine-spec-reporter": "~3.2.0",
"karma": "~1.4.1",
"karma-chrome-launcher": "~2.0.0",
"karma-cli": "~1.0.1",
"karma-coverage-istanbul-reporter": "^0.2.0",
"karma-jasmine": "~1.1.0",
"karma-jasmine-html-reporter": "^0.2.2",
"protractor": "~5.1.0",
"ts-node": "~2.0.0",
"tslint": "~4.5.0",
"typescript": "~2.2.0"
}

@deathbearbrown
Copy link
Contributor

deathbearbrown commented Oct 16, 2017

I'm also getting this error:
ERROR in Error encountered resolving symbol values statically. Expression form not supported (position 29:55 in the original .ts file), resolving symbol RecaptchaLoaderService in /marketing/node_modules/ng-recaptcha/recaptcha/recaptcha-loader.service.d.ts

@deathbearbrown
Copy link
Contributor

I will probably have a PR for this tomorrow.

deathbearbrown added a commit to deathbearbrown/ng-recaptcha that referenced this issue Oct 17, 2017
change Angular version to 4.2.0 to fix aot compiler error related to using interface types with @Inject

Closes DethAriel#65 and DethAriel#57
DethAriel pushed a commit that referenced this issue Oct 18, 2017
Fixes AoT error "Expression form not supported".
Closes #57, #65
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants