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

Repo should enforce the node version #16

Open
poolpitako opened this issue May 31, 2024 · 2 comments
Open

Repo should enforce the node version #16

poolpitako opened this issue May 31, 2024 · 2 comments

Comments

@poolpitako
Copy link

I was running the template with node 16 and getting the following error:

% npm start

> pimlico-tutorial-template@1.0.0 start
> tsx index.ts

HttpRequestError: HTTP request failed.

URL: https://rpc.ankr.com/eth_sepolia
Request body: {"method":"eth_chainId"}

Details: Request is not defined
Version: viem@2.9.23
    at Object.request (file:///Users/user/dev/pimlico-tutorial-1/node_modules/viem/utils/rpc/http.ts:137:15)
    at fn (file:///Users/user/dev/pimlico-tutorial-1/node_modules/viem/clients/transports/http.ts:124:19)
    at request (file:///Users/user/dev/pimlico-tutorial-1/node_modules/viem/clients/transports/http.ts:129:39)
    at withRetry.delay.count.count (file:///Users/user/dev/pimlico-tutorial-1/node_modules/viem/utils/buildRequest.ts:104:18)
    at attemptRetry (file:///Users/user/dev/pimlico-tutorial-1/node_modules/viem/utils/promise/withRetry.ts:44:22)

Updating to node 18 fixed the issue.

@tamarastafferd
Copy link

I was running the template with node 16 and getting the following error:

% npm start

> pimlico-tutorial-template@1.0.0 start
> tsx index.ts

HttpRequestError: HTTP request failed.

URL: https://rpc.ankr.com/eth_sepolia
Request body: {"method":"eth_chainId"}

Details: Request is not defined
Version: viem@2.9.23
    at Object.request (file:///Users/user/dev/pimlico-tutorial-1/node_modules/viem/utils/rpc/http.ts:137:15)
    at fn (file:///Users/user/dev/pimlico-tutorial-1/node_modules/viem/clients/transports/http.ts:124:19)
    at request (file:///Users/user/dev/pimlico-tutorial-1/node_modules/viem/clients/transports/http.ts:129:39)
    at withRetry.delay.count.count (file:///Users/user/dev/pimlico-tutorial-1/node_modules/viem/utils/buildRequest.ts:104:18)
    at attemptRetry (file:///Users/user/dev/pimlico-tutorial-1/node_modules/viem/utils/promise/withRetry.ts:44:22)

Updating to node 18 fixed the issue.

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

3 participants
@poolpitako @tamarastafferd and others