Skip to content

Documentation not Consistent! #11

@jvel07

Description

@jvel07

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions