Can you push your code to GitHub so I can check it out? I've never encountered this error myself, so I don't have a quick solution. But if I can see you code maybe I'll have a better idea.
I initially had gitignore outside the template folder and npm published it as such. Then I fixed that and moved it inside the template folder, however I didn't npm publish an updated version.
Ah! That makes sense! Yeah, once you said the dot wasn't in front of it, that's what I figured. Forgetting to publish my changes has got me a time or two as well! Glad you got it figured out!
Can you push your code to GitHub so I can check it out? I've never encountered this error myself, so I don't have a quick solution. But if I can see you code maybe I'll have a better idea.
I found the bug and fixed it already.
What was it?
I initially had gitignore outside the template folder and npm published it as such. Then I fixed that and moved it inside the
template
folder, however I didn't npm publish an updated version.Ah! That makes sense! Yeah, once you said the dot wasn't in front of it, that's what I figured. Forgetting to publish my changes has got me a time or two as well! Glad you got it figured out!
I also created a separate repo for my cra template:
github.com/nezlobnaya/cra-template...
and I added an alias (
alias create-react-app-custom="npx create-react-app --template=file: path/to/folder
) to my .zshrc file to quickly run it locally