redwood icon indicating copy to clipboard operation
redwood copied to clipboard

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

Open 0scvr opened this issue 2 years ago • 2 comments

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?

  • [X] I'm interested in working on this

0scvr avatar Aug 05 '22 09:08 0scvr

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?

noire-munich avatar Aug 05 '22 13:08 noire-munich

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.

0scvr avatar Aug 05 '22 16:08 0scvr