Skip to content

Loading…

polymer 1.0 Uncaught TypeError: this.mixin is not a function #1911

Closed
SophiaBelkin opened this Issue · 2 comments

2 participants

@SophiaBelkin

We are using polymer for our some of the components in our hybrid app. When I upgrade polymer 0.5 to 1.0 I kept seeing this error message:
polymer-micro.html:401 Uncaught TypeError: this.mixin is not a function

I have no idea what I did wrong. The components are working fine in the demo index files. When I load the component to my project, even just polymer was broken

@kevinpschaaf

Offending line here: https://github.com/Polymer/polymer/blob/v1.0.0/polymer-micro.html#L401

Reproduced here: http://jsbin.com/rapoci/edit?html,console,output

Fail conditions:

  • Use polymer-micro.html
  • Include a behavior that has hostAttributes

Root cause: _addHostAttributes calls this.mixin, which is defined in utils.html which is only included in polymer.html (standard layer). mixin should be moved to be included in polymer-micro.html

@kevinpschaaf kevinpschaaf added the p1 label
@kevinpschaaf kevinpschaaf self-assigned this
@SophiaBelkin

Thank a lot!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.