Skip to content
This repository has been archived by the owner on May 29, 2019. It is now read-only.

@import in <template> tag throwing error #321

Closed
Gbeschbacher opened this issue Mar 12, 2014 · 1 comment
Closed

@import in <template> tag throwing error #321

Gbeschbacher opened this issue Mar 12, 2014 · 1 comment

Comments

@Gbeschbacher
Copy link

Hey, i just tried the following snippet from the styleguide:

<polymer-element ...>

<style>@import "my-element.css";</style>
...

and i just couldn't get an external stylesheet loading; following error occurs:
Uncaught TypeError: Cannot call method 'cacheStyles' of undefined styles.js:38

Am i doing something wrong here? I was searching for a while what the error on my side could be but i just can't figure it out - i am thankful of any kind of help.

Cheers, Gbeschbacher

@dfreedm
Copy link
Member

dfreedm commented Mar 12, 2014

Answered your stackoverflow question: http://stackoverflow.com/a/22360277/3303267

This is because of Polymer/polymer#440 (comment)

If you run the commands I posted in StackOverflow, it should clear the bower cache and you won't have that crazy error.

@dfreedm dfreedm closed this as completed Mar 12, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants