aws-samples / amplify-vite-react-template

This is a React starter for building a fullstack app with AWS Amplify.
https://docs.amplify.aws/gen2
MIT No Attribution
38 stars 36 forks source link

Documentation not Consistent! #11

Open jvel07 opened 2 months ago

jvel07 commented 2 months ago

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): image

Now I am trying to generate forms following this tutorial. After I run npx ampx generate forms I get the same files as the instructions show.

image

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: image

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?

josefaidt commented 2 months ago

Hey @jvel07 :wave: would you mind cross-posting this in our Discord community?