-
-
Notifications
You must be signed in to change notification settings - Fork 306
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
this.fs.copyTpl breaks with recursive globs (**/*) #735
Comments
I think this is a https://github.com/SBoudrias/mem-fs-editor bug. You should file the bug there instead. |
Can this be because the system try to copy a directory as a file? |
@SBoudrias likely, as it works with globs like |
I started learning to create my first generator today, following this tutorial. http://yeoman.io/authoring/file-system.html As soon as I added this section of code I got exactly the same error. generators.Base.extend({ I assumed I had done something wrong as I'm a newbie so finding this issue was useful. Hope it gets fixed soon as I'm guessing lots of people use that getting started guide. |
I tried using the Who is finally to blame I guess is up to the yeoman/mem-fs-editor teams, but somehow the glob copying doesn't work. |
This is now fix thanks to @blai - |
I seem to be having this issue as well.... an example of a subgen is here https://github.com/payner35/generator-meteor-react/blob/master/view/index.js $ yo meteor-react:view imaview /usr/local/lib/node_modules/generator-meteor-react/templates/view/view.coffee events.js:72 if i install the package locally with npm link it works fine... just when i npm install from the remote package i get this error. |
@payner35 Can you try running |
does not seem to be a fix? i do notice that Yeoman-generator is dependent on "mem-fs-editor": "^1.0.0" should this not be bumped to at least 1.2.1 is this the issue? |
Make sure to run |
still no luck.. i have checked the package on another computer to see if the issue is local to my machine.. but i get the same result. again if its worth noting. npm link works fine? this is my gen |
I looked at your code and found that https://github.com/payner35/generator-meteor-react/blob/master/view/index.js#L41 causes a The problem is in your package.json https://github.com/payner35/generator-meteor-react/blob/master/package.json#L26. You need to add a line to include your template folder in your npm install. So your
|
Ah thanks for looking deeper into it @blai! |
Great..!! thanks @blai and @SBoudrias. Package working and updated ;) |
Ran into this here:
https://github.com/timkelty/generator-craft-plugin
This was working rather recently, but with a freshly re-installed yo, I get this:
I saw there were recent fixes for changes in
mem-fs-editor
, so I'm thinking it might be related?The text was updated successfully, but these errors were encountered: