redwoodjs / redwood

The App Framework for Startups
https://redwoodjs.com
MIT License
17.08k stars 980 forks source link

[Bug?]: 'yarn rw setup auth clerk' produces typescript code in javascript project #6128

Open 0scvr opened 2 years ago

0scvr commented 2 years ago

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: code

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?

noire-munich commented 2 years ago

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?

0scvr commented 2 years ago

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.