I just installed Chrome Dev Editor and gave it a try with one of the sample templates:
- New Project >> Project Type = JavaScript Chrome App (using Polymer paper elements) >> Create
- Right-click >> Refactor for CSP
- Click on Run (black arrow)
A window opens with what seems to be the sample Polymer app, without Polymer features (only html markup). Here is what the Console reports in Developer Tools:
extensions::platformApp:31 Uncaught Error: document.write() is not available in packaged apps.
index.html:338 GET chrome-extension://fonts.googleapis.com/css?family=RobotoDraft:regular,bold,italic,thin,light,bolditalic,black,medium&lang=en net::ERR_FAILED
core-resizable.html.0.js:95 Uncaught TypeError: undefined is not a function
polymer.html.0.js:5 Uncaught TypeError: Cannot read property 'parentNode' of undefined
unresolved.js:30 Uncaught ReferenceError: Platform is not defined
queue.js:138 Uncaught ReferenceError: CustomElements is not defined
I find it quite surprising that sample apps bundled with the IDE do not work out of the box, so I guess I must be doing something wrong somewhere...
My question is : does anyone know what changes i should make to the sample code or to my configuration to have it run properly?
Thanks
Note: might be useful, I'm using Chrome Version 39.0.2171.71 m