yeoman / generator-polymer

Scaffold out a Polymer project
http://polymer-project.org
926 stars 149 forks source link

Answering "Yes" to "Would you like to include an import in your elements.html file?" causes an error #188

Closed lozandier closed 9 years ago

lozandier commented 9 years ago

With the latest version of generator-polymer, an exception is raised when you use "Yes" or Y to answer the "Would you like to include an import in your elements.html file?" prompt: screen shot 2015-06-04 at 9 48 23 pm

timomeh commented 9 years ago

Are you sure /Users/lozandier/Sites/app/elements/elements.html exists? That's the file where all of your element imports are. It's generated by yo polymer, which scaffolds the Polymer Starter Kit.

If you just use the yo polymer:el command and have an other project structure, this won't work.

lozandier commented 9 years ago

Ah thanks for clarifying that, I was running yo polymer:el & don't recall having to have elements.html defined;

I thought it would generate a single-element based on all the goodies added to the starter kit that's not related to making an entire app w/ Polymer or yo polymer being ran first.

Thanks for clarifying that.

robdodson commented 9 years ago

If you want to generate a single element (outside of an app) you probably want yo polymer:seed. https://github.com/yeoman/generator-polymer#seed

lozandier commented 9 years ago

Doh! Thanks a bunch, Rob

On Sunday, June 7, 2015, Rob Dodson notifications@github.com wrote:

If you want to generate a single element (outside of an app) you probably want yo polymer:seed. https://github.com/yeoman/generator-polymer#seed

— Reply to this email directly or view it on GitHub https://github.com/yeoman/generator-polymer/issues/188#issuecomment-109818522 .

Kevin Lozandier lozandier@gmail.com lozandier@gmail.com

robdodson commented 9 years ago

np!