aws-samples / aws-samples/amplify-vite-react-template
Documentation not Consistent!
- Dominant language
- TypeScript
- Stars
- 109
- Forks
- 261
- PR merge metrics
- No merged PRs in 30d
Description
Hey there! Thanks for this repo. @renebrandel @josefaidt
I followed the Quickstart and could add login and auth. Got the following file structure (please note `src/main.tsx`):

Now I am trying to generate forms following this [tutorial](https://docs.amplify.aws/react/build-ui/formbuilder/). After I run `npx ampx generate forms` I get the same files as the instructions show.

As per the Quickstart tutorial, everything is on React. However, the instructions in Formbuilder are misleading as there is no file called `src/main.jsx` for vite with React:

There is `src/main.tsx` for vite react.
So, when trying to `import { TodoCreateForm } from './ui-components';` from App.tsx, I get:
```
Could not find a declaration file for module '../ui-components/'. '../../ui-components/index.js' implicitly has an 'any' type.t
```
What is missing here?
Also, could the documentation be corrected to reflect the Quickstart tutorial (react+vite) all along?
Is `npx ampx generate forms` missing to generate a `main.ts` form that could be used with `main.tsx`?
Contributor guide
Assessment
This issue has not been assessed yet.