Are there any docs on just getting a React project setup? I used Vite to scaffold a React app, and then followed the instructions found here: https://smartclient.com/smartclient-...d=group..npmjs. But doing anything like:
just gives me an error:
Reproduction steps:
everything works as expected at this point. Then:
and add the following to App.tsx:
results in the following errors:
Code:
import { SC, ButtonItem, DynamicForm, TextItem } from 'smartclient-eval/react';
Cannot find module 'smartclient-eval/react' or its corresponding type declarations.
Code:
npm create vite@latest cd app-name npm install npm run dev
Code:
npm install smartclient-lgpl
Code:
import 'smartclient-lgpl/debug';
Code:
✘ [ERROR] With statements cannot be used in an ECMAScript module
isomorphic/system/modules-debug/ISC_Core.js:6464:24:
6464 │ with (evalArgs) {
╵ ~~~~
This file is considered to be an ECMAScript module because the enclosing "package.json" file sets
the type of this file to "module":
package.json:5:10:
5 │ "type": "module",
╵ ~~~~~~~~
✘ [ERROR] With statements cannot be used in an ECMAScript module
isomorphic/system/modules-debug/ISC_Core.js:6486:20:
6486 │ with (evalArgs) {
╵ ~~~~
This file is considered to be an ECMAScript module because the enclosing "package.json" file sets
the type of this file to "module":
package.json:5:10:
5 │ "type": "module",
Comment