Skip to content

Closure compiler ERROR - The types of the getter and setter for property 'template' do not match. #5443

@paladox

Description

@paladox

Description

Hi, im trying out polymer 2.x in gerrit (using https://gerrit-review.googlesource.com/c/gerrit/+/203832 and https://gerrit-review.googlesource.com/c/gerrit/+/202532)

When i checked out 1b5849e bazel build release started to fail with:

bazel-out/darwin-fastbuild/bin/polygerrit-ui/app/gr-app.js:6136: ERROR - The types of the getter and setter for property 'template' do not match.
      static set template(value) {
                 ^
  ProTip: "CONFLICTING_GETTER_SETTER_TYPE" can be added to the `suppress` attribute of:
  //polygerrit-ui/app:polygerrit_ui_closure_lib

1 error(s), 1 warning(s)

This was working on commit 79de83c though.

Caused by 8882c3d

Live Demo

https://jsbin.com/luhaxab/edit

https://glitch.com/edit/#!/polymer-repro?path=my-element.html:2:0

Steps to Reproduce

Expected Results

Actual Results

Browsers Affected

  • Chrome
  • Firefox
  • Edge
  • Safari 11
  • Safari 10
  • IE 11

Versions

  • Polymer: 2.x (from the 2.x branch)
  • webcomponents: v1.3.0

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions