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 when running rpm run build #3410

Open
erickch123 opened this issue Jan 21, 2025 · 0 comments
Open

Error when running rpm run build #3410

erickch123 opened this issue Jan 21, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@erickch123
Copy link

Description

Error after running npm run build command

———————————————————————————————————————————————————————————————————————————————————————————————————————————
✖ @hashgraph/json-rpc-relay:build
> @hashgraph/[email protected] build
> pnpm run clean && pnpm run compile

  > @hashgraph/[email protected] clean /Users/erickchandra/LocalCode/hedera-json-rpc-relay/packages/relay
  > rm -rf ./dist && rm -rf tsconfig.tsbuildinfo
  
  
  > @hashgraph/[email protected] compile /Users/erickchandra/LocalCode/hedera-json-rpc-relay/packages/relay
  > tsc -b tsconfig.json
  
  ../../node_modules/axios-retry/index.d.ts(10,14): error TS2833: Cannot find namespace 'axios'. Did you mean 'Axios'?
  ../../node_modules/axios-retry/index.d.ts(10,34): error TS2833: Cannot find namespace 'axios'. Did you mean 'Axios'?
  ../../node_modules/axios-retry/index.d.ts(43,30): error TS2833: Cannot find namespace 'axios'. Did you mean 'Axios'?
  ../../node_modules/axios-retry/index.d.ts(49,46): error TS2833: Cannot find namespace 'axios'. Did you mean 'Axios'?
  ../../node_modules/axios-retry/index.d.ts(57,14): error TS2833: Cannot find namespace 'axios'. Did you mean 'Axios'?
  ../../node_modules/axios-retry/index.d.ts(58,22): error TS2833: Cannot find namespace 'axios'. Did you mean 'Axios'?
  ../../node_modules/axios-retry/index.d.ts(93,16): error TS2671: Cannot augment module 'axios' because it resolves to a non-module entity.
  src/lib/clients/mirrorNodeClient.ts(22,17): error TS2305: Module '"axios"' has no exported member 'AxiosInstance'.
  src/lib/clients/mirrorNodeClient.ts(22,32): error TS2305: Module '"axios"' has no exported member 'AxiosRequestConfig'.
  src/lib/clients/mirrorNodeClient.ts(22,52): error TS2305: Module '"axios"' has no exported member 'AxiosResponse'.
  src/lib/clients/mirrorNodeClient.ts(232,7): error TS2345: Argument of type '{ baseURL: string; responseType: "json"; headers: { 'Content-Type': string; }; timeout: number; maxRedirects: number; httpAgent: http.Agent; httpsAgent: https.Agent; }' is not assignable to parameter of type 'AxiosXHRConfigBase<unknown>'.
    Object literal may only specify known properties, and 'maxRedirects' does not exist in type 'AxiosXHRConfigBase<unknown>'.
   ELIFECYCLE  Command failed with exit code 1.
  npm error Lifecycle script `build` failed with error:
  npm error code 1
  npm error path /Users/erickchandra/LocalCode/hedera-json-rpc-relay/packages/relay
  npm error workspace @hashgraph/[email protected]
  npm error location /Users/erickchandra/LocalCode/hedera-json-rpc-relay/packages/relay
  npm error command failed
  npm error command sh -c pnpm run clean && pnpm run compile

———————————————————————————————————————————————————————————————————————————————————————————————————————————————

Lerna (powered by Nx) Ran target build for 4 projects (9s)

✔ 1/2 succeeded [0 read from cache]

✖ 1/2 targets failed, including the following:

  - @hashgraph/json-rpc-relay:build

Steps to reproduce

run the npm run build

Additional context

No response

Hedera network

No response

Version

v.0.63.2

Operating system

macOS

@erickch123 erickch123 added the bug Something isn't working label Jan 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant