Skip to content
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

Filename issues with custom components #1

Closed
anku94 opened this issue Mar 2, 2021 · 1 comment
Closed

Filename issues with custom components #1

anku94 opened this issue Mar 2, 2021 · 1 comment

Comments

@anku94
Copy link

anku94 commented Mar 2, 2021

Hi,

While trying to use a custom component using:

npx generate-react-cli component HelloD3 --type=d3

The generated component tree looks like this:

HelloD3
├── component.tsx
├── style.scss
└── test.tsx

These names should apparently be HelloD3.[tsx|scss] for the rest of the code to work. I think this might be an issue with generate-react-cli but I'm not sure if this can be handled with the config. The documentation does describe a TemplateName special keyword, but it seems to apply to the component type (d3), and not hte component name (HelloD3).

@EliEladElrom
Copy link
Owner

Hi @anku94 -- what you doing is correct. It looks like an update to filenames in generate-react-cli due to a recent release is causing this issue. I just published a new commit and you are good to go, give it a try now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants