Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
SophiaBelkin opened this issue Jun 18, 2015 · 2 comments
Closed

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

SophiaBelkin opened this issue Jun 18, 2015 · 2 comments
Assignees
Labels

Comments

@SophiaBelkin
Copy link

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
Copy link
Member

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 self-assigned this Jun 22, 2015
@SophiaBelkin
Copy link
Author

Thank a lot!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants