Heyo, i've got a problem using a <link rel="stylesheet" src="test.css" /> in 
a <template></template> in my custom polymer-element. I've imported and 
loaded everything relevant to use polymer. The error i get when trying to 
load external stylesheets is the following:

*Uncaught TypeError: Cannot call method 'cacheStyles' of undefined 
styles.js:38*

This error occurs when i try to load a stylesheet like follows:

- @import "test.css";- @import url(test.css);- @import url("test.css");- 
@import url("http://localhost/misc/test.css";);- @import 
url(http://localhost/misc/test.css);- @import 
"http://localhost/misc/test.css";- <link rel="stylesheet" 
src="http://localhost/misc/test.css"; />- <link rel="stylesheet" src="test.css" 
/>

All of the above methods of loading an external stylesheet fails with the 
mentioned error. Does someone have any suggestion i can still try out?

PS: It works when i hardcode it into the custom element but i'd like to add 
more than 500 lines of css for the element because it's a multilevel push 
menu i'm developing

Cheers, Gbeschbacher

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/c6cdb471-fa9f-4298-bd87-30fe86a9d579%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to