When trying to create a workers-rust project as described in the cloudflare/workers-rs repository, one cannot use the yarn commands from the package.json file.
Running yarn dev or yarn deploy results in this error:
error: No loader is configured for ".rs" files: src/lib.rs
I guess these usage signatures originate from an older wrangler version. worker-rs now uses wranger2.
I updated the commands to the recommended usage from the worker-rs README file and they work for me now.
When trying to create a workers-rust project as described in the cloudflare/workers-rs repository, one cannot use the yarn commands from the
package.json
file.Running
yarn dev
oryarn deploy
results in this error:error: No loader is configured for ".rs" files: src/lib.rs
I guess these usage signatures originate from an older wrangler version. worker-rs now uses wranger2.
I updated the commands to the recommended usage from the worker-rs README file and they work for me now.
Fixes #75