cloudflare / cloudflare/templates
Remove @cloudflare/workers-types package from vite-react-template
- Dominant language
- TypeScript
- Stars
- 2.1k
- Forks
- 1k
- Avg merge
- 17h 44m
- Merged PRs (30d)
- 10
Description
Hey Cloudflare folks!
When running the `wrangler types` command in a freshly-created project using the [vite-react-template](https://github.com/cloudflare/templates/tree/staging/vite-react-template), you still receive this "action required" warning:
```
Action required Migrate from @cloudflare/workers-types to generated runtime types
`wrangler types` now generates runtime types and supersedes @cloudflare/workers-types.
You should now uninstall @cloudflare/workers-types and remove it from your tsconfig.json.
📖 Read about runtime types
https://developers.cloudflare.com/workers/languages/typescript/#generate-types
📣 Remember to rerun 'wrangler types' after you change your wrangler.json file.
```
In order to not require a manual update every time a new project is started, please look into updating the vite-react-template to no longer use an outdated package.
Appreciate, yall!
Contributor guide
Assessment
This issue has not been assessed yet.