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.
28 Replies
Have you tried using
create cloudflare
as it recommends?it gives me error
What error?
this one
Try it without the explicit version or directory, like so:
I already did, didn't work
same error
Which version of
create-cloudflare
did it use?2.21.1
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.
oh so it's only me?
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?
worker-help
I'm trying to create a worker for discord bot
it's a mess for me
Oh yeah, then the repo linked should be good
Simple "getting-started" Worker
what command did you use?
the $ npm create cloudflare?
Yep. Here's the full output(minus colors):
did you sign in to cloudflare? or wrangler is enough ?
maybe that's the problem?
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?do I need to download anything beside wrangler ?
git bash
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 ownboth
I'm using git bash
Which OS are you on?
windows
Maybe try it with PowerShell?
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
Can you screenshot it?
oh it worked
I figured it out by accident
lol haha thanks alot 😄 ❤️
Happy to help!
:MeowHeartCloudflare: