You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The project uses wrangler version 2.x for running and publishing your Worker.
Get the Rust worker project template manually, or run the following command:
npm init cloudflare project_name worker-rust
cd project_name
So I tried it, but the error like below occurred.
Steps To Reproduce
Run the below command.
$ docker run node:20.7 npm init -y cloudflare project_name worker-rust
Expected result
It should generate worker project for worker-rs.
Actual result
create-cloudflare [args]
Positionals:
name [string]
Options:
--type [string]
--framework [string]
--deploy [boolean]
--ts [boolean]
--git [boolean]
--open opens your browser after your deployment, set --no-open
to disable [boolean] [default: true]
-y, --accept-defaults [boolean]
--version Show version number [boolean]
-h, --help Show help [boolean]
Too many positional arguments provided
npm ERR! code 1
npm ERR! path /
npm ERR!command failed
npm ERR!command sh -c create-cloudflare project_name worker-rust
npm ERR! A complete log of this run can be found in: /root/.npm/_logs/2023-09-26T05_33_21_329Z-debug-0.log
Seems like create-cloudflare does not support generating templates or the README is outdated.
I tried something like npm init cloudflare@latest --type worker-rust but it keeps saying type is undefined.
├ What type of application do you want to create?
│ type undefined
Is there an existing issue for this?
What version of
workers-rs
are you using?N/A
What version of
wrangler
are you using?wrangler 3.9.1
Describe the bug
In the README,
So I tried it, but the error like below occurred.
Steps To Reproduce
Expected result
It should generate worker project for
worker-rs
.Actual result
Seems like
create-cloudflare
does not support generating templates or the README is outdated.I tried something like
npm init cloudflare@latest --type worker-rust
but it keeps sayingtype
isundefined
.Note
In the template repository, it say I have to use one of the followings:
So I tried it as well, and this time, it worked. However it shows warning like this:
I am new to cloudflare worker, so I have no idea which one is the correct one.
Thank you for working on this awesome project.
Regards.
The text was updated successfully, but these errors were encountered: