Tools: [build] [could-not-resolve-reference] - Could not resolve reference to element-mixin when using Polymer.mixinBehaviors()

Created on 7 Sep 2018  路  5Comments  路  Source: Polymer/tools

Description

Receive warning when building with polymer-cli v1.8.0 on polymer 2.0 project with the following class declaration:

/**
 * CustomValidator
 * 
 * @polymer
 * @customElement
 * @extends Polymer.Element
 * @appliesMixin Polymer.IronValidatorBehavior
 */
class CustomValidator extends Polymer.mixinBehaviors([Polymer.IronValidatorBehavior], Polymer.Element) {
  // ...
}

Steps to reproduce

N/A

Expected result

No warning

Actual result

Warning as follow:

warning [could-not-resolve-reference] - Could not resolve reference to element-mixin

Most helpful comment

It's quite a no go if you have a big app and your pipeline fails (as it should) if there are linter errors. I'd really appreciate a fix...

All 5 comments

Any updates on this?

Currently I am reverting to Polymer CLI v1.6 until the problem is resolved.

It's quite a no go if you have a big app and your pipeline fails (as it should) if there are linter errors. I'd really appreciate a fix...

Still nothing?

Polymer 3 with cli 1.9.*....I am hitting this also

Was this page helpful?
0 / 5 - 0 ratings