I will add a new rare behaviour.
I did the following.
yo polymer
(I select core and paper elements only)
Then I open the index.html file and I add the paper button as follow
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Polymer WebApp</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, minimum-scale=1.0,
initial-scale=1.0, user-scalable=yes">
<!-- Place favicon.ico and apple-touch-icon.png in the root directory -->
<!-- build:css styles/main.css -->
<link rel="stylesheet" href="styles/main.css">
<!-- endbuild-->
<script src="bower_components/platform/platform.js"></script>
<!-- build:vulcanized elements/elements.vulcanized.html -->
<link rel="import" href="elements/elements.html">
<!-- endbuild-->
<link rel="import" href="bower_components/paper-button/paper-button.html">
</head>
<body unresolved>
<div class="hero-unit">
<yo-greeting></yo-greeting>
<p>You now have</p>
<yo-list></yo-list>
</div>
<!-- build:js scripts/app.js -->
<script src="scripts/app.js"></script>
<!-- endbuild-->
</body>
</html>
Then I execute
grunt
cd dist
python -m SimpleHTTPServer
When I go to the browser I got
Uncaught HierarchyRequestError: Failed to execute 'appendChild' on 'Node':
Nodes of type 'HTML' may not be inserted inside nodes of type '#document'.
polymer.concat.js:6313
Uncaught TypeError: object is not a function core-meta.html:68
Uncaught TypeError: object is not a function core-iconset.html:67
Uncaught TypeError: object is not a function core-icon.html:70
Uncaught TypeError: object is not a function paper-ripple.html:274
Uncaught TypeError: Cannot read property 'loadStyles' of undefined
polymer.concat.js:9569
Uncaught TypeError: object is not a function paper-shadow.html:65
Uncaught TypeError: object is not a function paper-focusable.html:36
Uncaught TypeError: object is not a function paper-button-base.html:26
Uncaught TypeError: object is not a function paper-button.html:122
If I remove the paper-button import it works without problem.
Any idea??
On Sunday, November 16, 2014 6:42:43 PM UTC-3, Eric Bidelman wrote:
>
> +rob
>
> On Sat, Nov 15, 2014 at 12:44 AM, <[email protected] <javascript:>>
> wrote:
>
>> Hi,
>>
>> I create a new project from scratch and the lastes dependences are used
>> (0.5.x) but the project uses polymer.js instead of webcomponents. So it
>> does not work.
>>
>> When I start the website I got the following errors in the console
>>
>> Uncaught HierarchyRequestError: Failed to execute 'appendChild' on
>> 'Node': Nodes of type 'HTML' may not be inserted inside nodes of type
>> '#document'. polymer.js:6359
>> Uncaught TypeError: object is not a function elements.vulcanized.html:317
>> Uncaught TypeError: object is not a function elements.vulcanized.html:348
>> 2Uncaught TypeError: Cannot read property 'parse' of undefined
>> platform.js:16
>>
>> It is the default project without any change. I think the yeoman polymer
>> is not updated in order to work with 0.5.x because it is using polymer.js
>> instead of webcomponents.js . I changed by hand and it works. I it just
>> that.
>>
>> Best
>> Ignacio
>>
>> Follow Polymer on Google+: plus.google.com/107187849809354688692
>> ---
>> You received this message because you are subscribed to the Google Groups
>> "Polymer" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [email protected] <javascript:>.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/polymer-dev/af04f297-fc30-40a3-9b27-be9d8f5d25a1%40googlegroups.com
>>
>> <https://groups.google.com/d/msgid/polymer-dev/af04f297-fc30-40a3-9b27-be9d8f5d25a1%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
Follow Polymer on Google+: plus.google.com/107187849809354688692
---
You received this message because you are subscribed to the Google Groups
"Polymer" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/polymer-dev/6fec9f85-5d3e-4812-8ab2-ef7e2b093868%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.