From dd4923a698a0dbc1ea23a17a3c5951c9f1569ccd Mon Sep 17 00:00:00 2001 From: Kevin Kipp Date: Mon, 8 Nov 2021 11:04:08 -0600 Subject: [PATCH] Fix exported types This path should be relative. Without being relative, the exported types do not work. Also removing absolute imports from tsconfig.json. --- src/Stream.tsx | 2 +- tsconfig.json | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/Stream.tsx b/src/Stream.tsx index 4676962..aafb000 100644 --- a/src/Stream.tsx +++ b/src/Stream.tsx @@ -8,7 +8,7 @@ import React, { useMemo, MutableRefObject, } from "react"; -import { StreamPlayerApi, StreamProps, VideoDimensions } from "types"; +import { StreamPlayerApi, StreamProps, VideoDimensions } from "./types"; import { useStreamSDK, safelyAccessStreamSDK } from "./useStreamSDK"; import { useIframeSrc } from "./useIframeSrc"; import { validSrcUrl } from "./validSrcUrl"; diff --git a/tsconfig.json b/tsconfig.json index 954fa24..abb923c 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -19,8 +19,7 @@ "moduleResolution": "node", "baseUrl": "./", "paths": { - "@": ["./"], - "*": ["src/*", "node_modules/*"] + "*": ["node_modules/*"] }, "jsx": "react", "esModuleInterop": true