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

Possible problem with dependencies #2

Open
mikebevz opened this issue Aug 20, 2014 · 0 comments
Open

Possible problem with dependencies #2

mikebevz opened this issue Aug 20, 2014 · 0 comments

Comments

@mikebevz
Copy link

Hi,

I've got the following setup

-Gemfile

gem 'polymer-rails'
gem 'polymer-core-rails'
gem 'polymer-paper-rails'

-components/application.html.erb

//= require polymer/polymer
//= require paper-button/paper-button
//= require core-animated-pages/core-animated-pages

-javascripts/application.js

//= require polymer/platform
//= require jquery
//= require jquery_ujs
//= require turbolinks
//= require_tree .

  • layout/application.html.erb
<title>Polycalc</title> <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true %> <%= javascript_include_tag 'application', 'data-turbolinks-track' => true %> <%= html_import_tag 'application' %> <%= csrf_meta_tags %> - in view/home/index.html.erb



In JS console I"ve got an error:

Uncaught NotSupportedError: Failed to execute 'registerElement' on 'Document': Registration failed for type 'core-meta'. A type with that name is already registered. polymer.js:12
f.registerPrototype polymer.js:12
f.register polymer.js:12
d._register polymer.js:13
e.flush polymer.js:12
e.ready polymer.js:12
e.check polymer.js:12
e.go polymer.js:12
d.registerWhenReady polymer.js:13
(anonymous function) polymer.js:13
d platform.js?body=1:16
e platform.js?body=1:16
(anonymous function) platform.js?body=1:16
g platform.js?body=1:16
b.resolve platform.js?body=1:16
b.fetch platform.js?body=1:16
b.handleXhr platform.js?body=1:16

Any idea what it could be? I tried different combinations but it seems like 'polymer-core-rails' and 'polymer-paper-rails' do not like each other.

You cna download Rails app with this problem here - https://www.dropbox.com/s/7aqi4pho5s230o8/polycalc.zip

Thanks

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

No branches or pull requests

1 participant