Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error with API Usage #195

Closed
kachidk opened this issue Jun 20, 2023 · 1 comment
Closed

Error with API Usage #195

kachidk opened this issue Jun 20, 2023 · 1 comment

Comments

@kachidk
Copy link

kachidk commented Jun 20, 2023

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

image

@kachidk
Copy link
Author

kachidk commented Jun 21, 2023

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

@kachidk kachidk closed this as completed Jun 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant