From bc5b39ffdd5895b99d2a06ceefe670e6190696f7 Mon Sep 17 00:00:00 2001 From: notwonjang Date: Sun, 15 Nov 2026 14:40:56 +0900 Subject: [PATCH] fix(sdk-playground): the Vite config loads on Node 22 before 22.18 vite.config.ts imported createFsAdapter from @hyperframes/sdk/adapters/fs. Vite leaves a bare import in a config file to Node, and that export points at src/adapters/fs.ts, so Node had to load a .ts file itself. Node only does that without a flag from 22.18, and on 22.0 to 22.17 build, dev and test all stopped with ERR_UNKNOWN_FILE_EXTENSION, which also failed the last step of the root build. The config now imports the adapter by its relative source path, which Vite bundles with the config on every Node version. Co-Authored-By: Claude Fable 5.2 --- packages/sdk-playground/vite.config.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/sdk-playground/vite.config.ts b/packages/sdk-playground/vite.config.ts index 45e8031e171..136b596140b 100644 --- a/packages/sdk-playground/vite.config.ts +++ b/packages/sdk-playground/vite.config.ts @@ -3,7 +3,7 @@ import path from "node:path"; import type { Plugin } from "vite"; import type { Connect } from "vite"; import type { ServerResponse } from "node:http"; -import { createFsAdapter } from "@hyperframes/sdk/adapters/fs"; +import { createFsAdapter } from "../sdk/src/adapters/fs"; import type { PersistAdapter } from "@hyperframes/sdk"; const COMP_ROOT = path.resolve(import.meta.dirname);