Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Documentation not Consistent! #11

Open
jvel07 opened this issue Aug 6, 2024 · 1 comment
Open

Documentation not Consistent! #11

jvel07 opened this issue Aug 6, 2024 · 1 comment

Comments

@jvel07
Copy link

jvel07 commented Aug 6, 2024

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
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants