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. 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?
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. 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: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 amain.ts
form that could be used withmain.tsx
?