8 Replies
Could you try the pre-release here to see if it fixes the issue? https://github.com/cloudflare/workers-sdk/pull/4470#issuecomment-1820766308
GitHub
Various
--from-dash
improvements by penalosa · Pull Request #4470...Fixes #4401 #4352 #4043 #3825
What this PR solves / how to test:
This improves wrangler init --from-dash to:
Always use JavaScript, rather than prompting for TypeScript (the API only returns JavaS...
Can test rq
it prefilled 


ok so
code cloned and all
but even tho its a no to TS, its still cloning as TS
on the dash -
index.js
locally when using the cli: either index.ts
or worker.ts

did it again with another worker, it did
src/index.ts
even tho it uses worker.ts
and on the dashboard index.js
It looks like the bug from https://github.com/cloudflare/workers-sdk/issues/4352 is still present. We'll have to do some more work on it. The contents of my test worker seem to match up. From what I can see it seems limited to outputting the wrong file extension.
👌
also worth noting
it asks you to select account twice