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

import fails #1090

Open
afeld opened this issue Feb 3, 2025 · 1 comment
Open

import fails #1090

afeld opened this issue Feb 3, 2025 · 1 comment

Comments

@afeld
Copy link

afeld commented Feb 3, 2025

The usage instructions for the api package say to use import { Client } from "@freshbooks/api";, but this fails:

Image

Seems like it may be exporting the type properly, or Node needs to be configured in a certain way. Had the same problem using Typescript.

Thanks!

@santiq
Copy link

santiq commented Feb 10, 2025

You can use it this way

import pkg from '@freshbooks/api';
const { Client } = pkg;

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

2 participants