Angular compiler v5.2.1 getOutputName is not a function
See original GitHub issueIβ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:
- Created 6 years ago
- Reactions:30
- Comments:19 (3 by maintainers)
Same problem
Broke my live demo I was running in front of about 50 people at an event, I looked pretty stupid. π
@LucasFrecia , thank you for the repro sample.
The reason is
@angular/complier-cli
indevDependencies
should also be updated to5.2.x
(the same version with@angular/compiler
.