question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. ItΒ collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Angular compiler v5.2.1 getOutputName is not a function

See original GitHub issue

I’m submitting a…


[ ] Regression (a behavior that used to work and stopped working in a new release)
@angular/compiler@5.1.3 is ok, but @angular/compiler@5.2.1 is not work, 
error:

`
ERROR in TypeError: _this.host.getOutputName is not a function
    at getOriginalName (/var/lib/postgresql/carepilot-web/node_modules/@angular/compiler/bundles/compiler.umd.js:29582:32)
    at ReferenceTransformer.visitStringMap (/var/lib/postgresql/carepilot-web/node_modules/@angular/compiler/bundles/compiler.umd.js:29627:43)
    at visitValue (/var/lib/postgresql/carepilot-web/node_modules/@angular/compiler/bundles/compiler.umd.js:426:24)
    at /var/lib/postgresql/carepilot-web/node_modules/@angular/compiler/bundles/compiler.umd.js:483:65
    at Array.forEach (<anonymous>)
    at ReferenceTransformer.ValueTransformer.visitStringMap (/var/lib/postgresql/carepilot-web/node_modules/@angular/compiler/bundles/compiler.umd.js:483:26)
    at ReferenceTransformer.visitStringMap (/var/lib/postgresql/carepilot-web/node_modules/@angular/compiler/bundles/compiler.umd.js:29654:60)
    at visitValue (/var/lib/postgresql/carepilot-web/node_modules/@angular/compiler/bundles/compiler.umd.js:426:24)
    at /var/lib/postgresql/carepilot-web/node_modules/@angular/compiler/bundles/compiler.umd.js:483:65
    at Array.forEach (<anonymous>)
    at ReferenceTransformer.ValueTransformer.visitStringMap (/var/lib/postgresql/carepilot-web/node_modules/@angular/compiler/bundles/compiler.umd.js:483:26)
    at ReferenceTransformer.visitStringMap (/var/lib/postgresql/carepilot-web/node_modules/@angular/compiler/bundles/compiler.umd.js:29654:60)
    at visitValue (/var/lib/postgresql/carepilot-web/node_modules/@angular/compiler/bundles/compiler.umd.js:426:24)
    at /var/lib/postgresql/carepilot-web/node_modules/@angular/compiler/bundles/compiler.umd.js:483:65
    at Array.forEach (<anonymous>)
    at ReferenceTransformer.ValueTransformer.visitStringMap (/var/lib/postgresql/carepilot-web/node_modules/@angular/compiler/bundles/compiler.umd.js:483:26)

`

[ ] Bug report  
[ ] Feature request
[ ] Documentation issue or request
[ ] Support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question

Current behavior

Expected behavior

Minimal reproduction of the problem with instructions

What is the motivation / use case for changing the behavior?

Environment

node8.5.0 npm 5.3.0 win 10 pro x64 and Ubuntu 14.04.5 both not work

β”œβ”€β”€ @agm/core@1.0.0-beta.2 β”œβ”€β”€ @angular/cli@1.6.4 β”œβ”€β”€ UNMET PEER DEPENDENCY @angular/common@5.2.1 β”œβ”€β”€ UNMET PEER DEPENDENCY @angular/compiler@5.2.1 β”œβ”€β”€ @angular/compiler-cli@5.0.1 β”œβ”€β”€ UNMET PEER DEPENDENCY @angular/core@5.2.1 β”œβ”€β”€ @angular/forms@5.2.1 β”œβ”€β”€ UNMET PEER DEPENDENCY @angular/http@5.2.1 β”œβ”€β”€ @angular/platform-browser@5.2.1 β”œβ”€β”€ @angular/platform-browser-dynamic@5.2.1 β”œβ”€β”€ @angular/router@5.2.1 β”œβ”€β”€ @angular/upgrade@5.2.1 β”œβ”€β”€ @ng-bootstrap/ng-bootstrap@1.0.0-beta.9 β”œβ”€β”€ @ngx-loading-bar/http-client@1.1.0 β”œβ”€β”€ @ngx-translate/core@8.0.0 β”œβ”€β”€ @ngx-translate/http-loader@2.0.1 β”œβ”€β”€ @types/angular-ui-router@1.1.40 β”œβ”€β”€ @types/google-maps@3.2.0 β”œβ”€β”€ @types/hammerjs@2.0.35 β”œβ”€β”€ @types/jasmine@2.8.4 invalid β”œβ”€β”€ @types/lodash@4.14.92 β”œβ”€β”€ @types/node@8.5.9 β”œβ”€β”€ @uirouter/angular-hybrid@3.1.8 β”œβ”€β”€ UNMET PEER DEPENDENCY angular@^1.5.0 β”œβ”€β”€ angular-svg-round-progressbar@1.2.1 β”œβ”€β”€ angular2-jwt@0.2.3 β”œβ”€β”€ angular2-moment@1.7.1 β”œβ”€β”€ animate.css@3.5.2 β”œβ”€β”€ auth0-js@7.6.1 β”œβ”€β”€ bootstrap@3.3.7 β”œβ”€β”€ classlist.js@1.1.20150312 β”œβ”€β”€ codelyzer@2.0.1 β”œβ”€β”€ core-js@2.5.3 β”œβ”€β”€ cross-env@5.1.3 β”œβ”€β”€ del@2.2.2 β”œβ”€β”€ eslint-config-angular@0.5.0 β”œβ”€β”€ eslint-plugin-angular@1.6.4 β”œβ”€β”€ event-stream@3.3.4 β”œβ”€β”€ express@4.16.2 β”œβ”€β”€ express-sslify@1.2.0 β”œβ”€β”€ font-awesome@4.7.0 β”œβ”€β”€ graceful-fs@4.1.11 β”œβ”€β”€ hammerjs@2.0.8 β”œβ”€β”€ jasmine-core@2.5.2 β”œβ”€β”€ jasmine-reporters@2.3.0 β”œβ”€β”€ jasmine-spec-reporter@3.2.0 β”œβ”€β”€ jquery@3.2.1 β”œβ”€β”€ jshint@2.9.5 β”œβ”€β”€ 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.1 β”œβ”€β”€ karma-jasmine-html-reporter@0.2.2 β”œβ”€β”€ karma-junit-reporter@0.4.2 β”œβ”€β”€ karma-phantomjs-launcher@1.0.4 β”œβ”€β”€ livereload@0.6.3 β”œβ”€β”€ lodash@4.17.4 β”œβ”€β”€ moment@2.20.1 β”œβ”€β”€ ng-click-outside@3.2.0 β”œβ”€β”€ ng-sidebar@6.0.5 β”œβ”€β”€ ng-socket-io@0.2.4 β”œβ”€β”€ ng2-file-upload@1.3.0 β”œβ”€β”€ ng2-img-cropper@0.9.0 β”œβ”€β”€ ng2-validation@4.2.0 β”œβ”€β”€ ngu-utility@1.0.3 β”œβ”€β”€ ngx-dynamic-template@2.3.1 β”œβ”€β”€ ngx-pipes@2.1.0 β”œβ”€β”€ parallelshell@3.0.2 β”œβ”€β”€ phantomjs-prebuilt@2.1.16 β”œβ”€β”€ pre-commit@1.2.2 β”œβ”€β”€ protractor@5.0.0 β”œβ”€β”€ protractor-console-plugin@0.1.1 β”œβ”€β”€ reflect-metadata@0.1.12 β”œβ”€β”€ rxjs@5.5.6 β”œβ”€β”€ serve-favicon@2.4.5 β”œβ”€β”€ ts-loader@3.2.0 β”œβ”€β”€ ts-node@2.0.0 β”œβ”€β”€ UNMET PEER DEPENDENCY tslint@5.8.0 β”œβ”€β”€ UNMET PEER DEPENDENCY typescript@2.6.2 β”œβ”€β”€ web-animations-js@2.3.1 β”œβ”€β”€ webpack@3.10.0 β”œβ”€β”€ webpack-stream@4.0.0 └── zone.js@0.8.20


Angular version: X.Y.Z


Browser:
- [ ] Chrome (desktop) version XX
- [ ] Chrome (Android) version XX
- [ ] Chrome (iOS) version XX
- [ ] Firefox version XX
- [ ] Safari (desktop) version XX
- [ ] Safari (iOS) version XX
- [ ] IE version XX
- [ ] Edge version XX
 
For Tooling issues:
- Node version: XX  
- Platform:  

Others:

So I want to know, is it a bug?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:30
  • Comments:19 (3 by maintainers)

github_iconTop GitHub Comments

37reactions
benc-ukcommented, Jan 18, 2018

Same problem

Broke my live demo I was running in front of about 50 people at an event, I looked pretty stupid. 😠

20reactions
JiaLiPassioncommented, Feb 1, 2018

@LucasFrecia , thank you for the repro sample.

The reason is @angular/complier-cli in devDependencies should also be updated to 5.2.x (the same version with @angular/compiler.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Angular 5 ERROR in _this.host.getOutputName is not a function
It's known issue https://github.com/angular/angular/issues/21621. Consider installing the same versions of angular dependencies:
Read more >
Angular compiler options
The template options object, angularCompilerOptions , is a sibling to the compilerOptions object that supplies standard options to the TypeScript compiler.
Read more >
How to use the @angular/compiler-cli.createCompilerHost ...
To help you get started, we've selected a few @angular/compiler-cli.createCompilerHost examples, based on popular ways it is used in public projects.
Read more >
Issue when trying to run the development environment locally
the error is happening in AppModule : caught exception: angular_core__WEBPACK_IMPORTED_MODULE_3_.Ι΅Ι΅elementStart(…) is not a function.
Read more >
Type error : Facing since today morning : r/Angular2 - Reddit
Compiling u/angular/animations : es2015 as esm2015 Error: Error on worker #1: TypeError: ... createMayBeForwardRefExpression is not a function…
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found