Error with API Usage
kachidk opened this issue · 1 comments
kachidk commented
I just installed Trapeze and I wanted to try the API version. I ran the script and received the following errors.
// <project-root>/configure/android/configure.ts
import { MobileProject, MobileProjectConfig } from "@trapezedev/project";
const config: MobileProjectConfig = {
enableIos: false,
android: {
path: "android",
},
};
async function configure() {
const project = new MobileProject(".", config);
await project.android?.load();
console.log(project);
}
configure();
# <project-root>
npx tsc configure/android/configure.ts && node configure/android/configure.js
kachidk commented
I found the issue tsc
ignores your tsconfig.json because I have passed it a file to process
So instead I passed this argument --esModuleInterop