Skip to content

Axios need to an explicit dep? #80

@Zaffer

Description

@Zaffer

When running build I got this error:

> @xeroapi/xero-mcp-server@0.0.12 build
> tsc && shx chmod +x dist/*.js

src/clients/xero-client.ts:1:35 - error TS2307: Cannot find module 'axios' or its corresponding type declarations.

1 import axios, { AxiosError } from "axios";
                                    ~~~~~~~

src/helpers/format-error.ts:1:28 - error TS2307: Cannot find module 'axios' or its corresponding type declarations.

1 import { AxiosError } from "axios";

Running pnpm add axios first resolved the issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions