guidone / lets-form

A JSON form generator for React with Material UI / AntDesign / Bootstrap / RSuite / Mantine
https://letsform.dev
MIT License
117 stars 6 forks source link

Basic setup provided in Getting Started Is not working #18

Closed ghana7989 closed 6 months ago

ghana7989 commented 6 months ago

I am using vite to create the app but I am getting this error. any guidelines on how to setup it in vite

Uncaught TypeError: Cannot read properties of undefined (reading 'webpackChunklets_form_react') at jsonp chunk loading:86:98 at jsonp chunk loading:88:88 at startup:4:47 at universalModuleDefinition:3:20 at node_modules/lets-form/dist/react/main.js (universalModuleDefinition:10:2) at __require (chunk-4YP5LC2O.js?v=a0a6cf6f:3:50) at startup:4:47

guidone commented 6 months ago

Hi, never tried with Vite but it's planned. The idea is to add an export button for Vite here

image

The problem is it's with the chunks, for some reason is not able to load them, I'll give a look. (Do you see something in the dev tool network panel?)

Thanks for the feedback

ghana7989 commented 6 months ago

if you have references or things to look at please share with me I will also have a look, might be helpful for us

ghana7989 commented 6 months ago

Hi @guidone, Also, adding that button to export to vite would be great, but I think a better solution would be to have documentation for vite setup. Because I am planning to create a good number of forms it is ideal that I copy the schema paste in my local JSON and import it to use it.

guidone commented 6 months ago

Ok, perhaps what you need is this

https://letsform.dev/lets-form-designer/export-to-github

It's basically exporting all JSON forms to a GitHub project/folder with few clicks, LetsForm has a lot of forms too and I use this feature for LetsForm designer.

It's a paid feature but I would be happy to offer a free subscription for you for for testing

guidone commented 6 months ago

Fixed in LetsForm Designer 0.8.5