From 77e202f208722a3b4b8d3aa034f0ed0e5ddff6bf Mon Sep 17 00:00:00 2001 From: Ives van Hoorne Date: Tue, 1 Oct 2024 13:54:09 -0700 Subject: [PATCH] fix: revert change of file location (#8627) --- packages/sandpack-core/src/npm/dynamic/fetch-protocols/file.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/sandpack-core/src/npm/dynamic/fetch-protocols/file.ts b/packages/sandpack-core/src/npm/dynamic/fetch-protocols/file.ts index f0b346eb1ab..aba0b947d87 100644 --- a/packages/sandpack-core/src/npm/dynamic/fetch-protocols/file.ts +++ b/packages/sandpack-core/src/npm/dynamic/fetch-protocols/file.ts @@ -17,7 +17,7 @@ export class FileFetcher implements FetchProtocol { private async getUrlFromFileProtocol(version: string) { const tarLocation = normalizePath(version.replace(/^file:/, '')); - const module = this.manager.transpiledModules[tarLocation]; + const module = this.manager.transpiledModules['/' + tarLocation]; if (!module) { throw new Error(`Could not find ${version} while resolving dependency`);