From a84d30814d2c0e270aaa23dd2c410ca5d4071e0f Mon Sep 17 00:00:00 2001 From: Stefan Sundin Date: Wed, 6 Dec 2023 23:24:29 -0800 Subject: [PATCH 1/2] Add "types" field to fix error when using "moduleResolution": "NodeNext". --- packages/types/package.json | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/types/package.json b/packages/types/package.json index d3d376e0f2..8be4971dca 100644 --- a/packages/types/package.json +++ b/packages/types/package.json @@ -30,6 +30,7 @@ "typings": "dist/index.d.ts", "exports": { ".": { + "types": "./dist/index.d.ts", "import": "./dist/types.js", "require": "./dist/types.umd.cjs" } From 2d68597319f3a47099d1ef4c82fb3774db985b2a Mon Sep 17 00:00:00 2001 From: Stefan Sundin Date: Wed, 6 Dec 2023 23:39:56 -0800 Subject: [PATCH 2/2] Add changeset. --- .changeset/wise-spiders-jog.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/wise-spiders-jog.md diff --git a/.changeset/wise-spiders-jog.md b/.changeset/wise-spiders-jog.md new file mode 100644 index 0000000000..6bfa0b580a --- /dev/null +++ b/.changeset/wise-spiders-jog.md @@ -0,0 +1,5 @@ +--- +'@rrweb/types': patch +--- + +Fix type error when using `"moduleResolution": "NodeNext"`.