redwood
redwood copied to clipboard
[Bug?]: 'yarn rw setup auth clerk' produces typescript code in javascript project
What's not working?
I was following the tutorial on adding auth with Clerk at https://redwoodjs.com/docs/auth/clerk and when I ran yarn rw setup auth clerk
some boilerplate code was generated, inckuding this:
As you can see, the previous command generated typescript code in a .js file for my project (which was configured to use Javascript).
How do we reproduce the bug?
Generate a Redwood project using Javascript then run yarn rw setup auth clerk
.
What's your environment? (If it applies)
No response
Are you interested in working on this?
- [X] I'm interested in working on this
Thanks @devstra for taking the time to report this. Indeed, it should not happen. Let's have a look!
Can you tell if you setup the project as typescript or if you converted it later on?
Thanks @devstra for taking the time to report this. Indeed, it should not happen. Let's have a look!
Can you tell if you setup the project as typescript or if you converted it later on?
I setup the project as Javascript and didn't change that. No typescript should be involved.