wrangler

Hey, I'm new at this, sorry but while using this command : $ wrangler generate projectname >> I get a whole automated process, forcing to use typescript. and I don't want, I want to use javascript.
No description
28 Replies
Hello, I’m Allie!
Have you tried using create cloudflare as it recommends?
Lemοn
Lemοn6mo ago
it gives me error
Hello, I’m Allie!
What error?
Lemοn
Lemοn6mo ago
No description
Lemοn
Lemοn6mo ago
this one
Hello, I’m Allie!
Try it without the explicit version or directory, like so:
$ npm create cloudflare
$ npm create cloudflare
Lemοn
Lemοn6mo ago
I already did, didn't work same error
Hello, I’m Allie!
Which version of create-cloudflare did it use?
Lemοn
Lemοn6mo ago
2.21.1
Hello, I’m Allie!
I would create a bug report on the workers-sdk repo. In the mean time, here is a repo with what it should have spit out to get you started.
GitHub
GitHub - helloimalastair/example-for-discord
Contribute to helloimalastair/example-for-discord development by creating an account on GitHub.
Lemοn
Lemοn6mo ago
oh so it's only me?
Hello, I’m Allie!
Oh wait I am not able to replicate the issue. That's not to say that it isn't something others can/have experienced. I just realized too that this is #pages-help not #workers-help. Did you want a Pages template instead?
Lemοn
Lemοn6mo ago
worker-help I'm trying to create a worker for discord bot it's a mess for me
Hello, I’m Allie!
Oh yeah, then the repo linked should be good Simple "getting-started" Worker
Lemοn
Lemοn6mo ago
what command did you use? the $ npm create cloudflare?
Hello, I’m Allie!
Yep. Here's the full output(minus colors):
Lemοn
Lemοn6mo ago
did you sign in to cloudflare? or wrangler is enough ? maybe that's the problem?
Hello, I’m Allie!
I am signed in to wrangler, but that shouldn't be the issue. Your issue appears to be something to do with the terminal itself Actually, do you have any other terminals on your device?
Lemοn
Lemοn6mo ago
do I need to download anything beside wrangler ? git bash
Hello, I’m Allie!
Do you mean the error shows up when using Git Bash, or that Git Bash is the other terminal on your device? You should need to download anything other than node. create-cloudflare should install what it needs on its own
Lemοn
Lemοn6mo ago
both I'm using git bash
Hello, I’m Allie!
Which OS are you on?
Lemοn
Lemοn6mo ago
windows
Hello, I’m Allie!
Maybe try it with PowerShell?
Lemοn
Lemοn6mo ago
it doesn't allow me to write commands.. it says unknown xD I'm noob sorry it shows path instead of the "$" don't know how to reach that in powershell
Hello, I’m Allie!
Can you screenshot it?
Lemοn
Lemοn6mo ago
oh it worked I figured it out by accident lol haha thanks alot 😄 ❤️
Hello, I’m Allie!
Happy to help! :MeowHeartCloudflare:
Want results from more Discord servers?
Add your server