From 129b9cdc26bb5fca02c717d9c1c599536a3f64a4 Mon Sep 17 00:00:00 2001 From: AlexMesser Date: Thu, 3 Nov 2022 22:09:57 +0500 Subject: [PATCH] fix: add .js extension to imported file (#370) Add .js extension to imported file Added `.js` extension since compiler gives an error `Relative import paths need explicit file extensions in EcmaScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Did you mean './rpc.js'?` with `"moduleResolution": "NodeNext"` option. --- src/message/decodeRpc.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/message/decodeRpc.ts b/src/message/decodeRpc.ts index 4d817fa2..11037930 100644 --- a/src/message/decodeRpc.ts +++ b/src/message/decodeRpc.ts @@ -1,4 +1,4 @@ -import type { IRPC, RPC } from './rpc' +import type { IRPC, RPC } from './rpc.js' import protobuf from 'protobufjs/minimal.js' export type DecodeRPCLimits = {